/* ═══════════════════════════════════════════════
   AgroControl — Home.css
   Landing page profesional
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg-dark:       #080B07;
  --bg-surface:    #0F1410;
  --bg-card:       #1A2119;
  --bg-hover:      #202820;

  --accent:        #63B3ED;
  --accent-bright: #93C5FD;
  --accent-dim:    rgba(99,179,237,0.12);
  --accent-glow:   rgba(99,179,237,0.10);
  --accent-text:   #93C5FD;
  --accent-border: rgba(99,179,237,0.25);

  --amber:         #C4883A;
  --amber-dim:     rgba(196,136,58,0.12);
  --amber-text:    #E8BC7A;
  --amber-border:  rgba(196,136,58,0.25);

  --blue:          #5190C8;
  --blue-dim:      rgba(81,144,200,0.12);
  --blue-text:     #94C0E8;
  --blue-border:   rgba(81,144,200,0.25);

  --text-primary:  #DDE8D9;
  --text-secondary:#7A9474;
  --text-tertiary: #485644;
  --text-muted:    #2E3B2C;

  --border-hairline: rgba(255,255,255,0.05);
  --border-subtle:   rgba(255,255,255,0.08);
  --border-mid:      rgba(255,255,255,0.13);

  --r-sm: 7px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-2xl: 26px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --mono: 'DM Mono', monospace;
  --ease: cubic-bezier(0.4,0,0.2,1);
  --spring: cubic-bezier(0.34,1.56,0.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ══════════════════════════
   HEADER
   ══════════════════════════ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6%;
  transition: all .25s var(--ease);
}
header.scrolled {
  background: rgba(8,11,7,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 13px 6%;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(99,179,237,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.logo-mark svg { width: 15px; height: 15px; }
.logo-text { font-size: 14px; color: var(--text-secondary); letter-spacing: .5px; }
.logo-text strong { color: var(--text-primary); font-weight: 700; }

/* Nav */
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  color: var(--text-secondary); text-decoration: none;
  padding: 7px 13px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  transition: all .15s var(--ease);
}
nav a:hover { color: var(--text-primary); background: var(--bg-hover); }

/* Header buttons */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-nav-login {
  color: var(--text-secondary); text-decoration: none;
  padding: 7px 14px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all .15s var(--ease);
}
.btn-nav-login:hover { color: var(--text-primary); border-color: var(--border-mid); }
.btn-nav-primary {
  background: var(--accent);
  color: #061006; border: none;
  padding: 8px 16px; border-radius: var(--r-md);
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
  transition: all .15s var(--ease);
}
.btn-nav-primary:hover { background: var(--accent-bright); }
.btn-nav-primary:active { transform: scale(.97); }

/* ══════════════════════════
   HERO
   ══════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  position: relative; overflow: hidden;
  padding: 0 6%;
  text-align: center;
}

/* Fondo decorativo */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .25;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,179,237,0.35) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: blobMove 8s ease-in-out infinite alternate;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(81,144,200,0.25) 0%, transparent 70%);
  bottom: 0; right: -80px;
  animation: blobMove 10s ease-in-out infinite alternate-reverse;
}
@keyframes blobMove { from { transform: translate(0,0); } to { transform: translate(40px, 30px); } }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  max-width: 760px; margin: 0 auto;
  padding-top: 100px;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  padding: 5px 14px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  margin-bottom: 24px;
  animation: fadeUp .5s .1s var(--ease) both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }

/* Título */
.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 20px;
  animation: fadeUp .5s .18s var(--ease) both;
}
.title-highlight {
  background: linear-gradient(135deg, var(--accent-text) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Descripción */
.hero-desc {
  font-size: 16px; line-height: 1.7;
  color: var(--text-secondary); max-width: 520px;
  margin-bottom: 32px;
  animation: fadeUp .5s .24s var(--ease) both;
}

/* CTAs */
.hero-ctas {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 36px;
  animation: fadeUp .5s .3s var(--ease) both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent);
  color: #061006; text-decoration: none;
  padding: 11px 22px; border-radius: var(--r-md);
  font-family: var(--font); font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(99,179,237,.45);
  box-shadow: 0 2px 8px rgba(99,179,237,.25), inset 0 1px 0 rgba(255,255,255,.12);
  transition: all .15s var(--ease);
}
.btn-primary svg { width: 14px; height: 14px; }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,179,237,.3); }
.btn-primary:active { transform: scale(.97); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-secondary); text-decoration: none;
  padding: 11px 20px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
  transition: all .15s var(--ease);
}
.btn-outline svg { width: 13px; height: 13px; }
.btn-outline:hover { color: var(--text-primary); border-color: var(--border-strong, rgba(255,255,255,0.18)); background: var(--bg-hover); }

/* Trust */
.hero-trust {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--text-tertiary);
  animation: fadeUp .5s .36s var(--ease) both;
}
.hero-trust strong { color: var(--text-secondary); }
.trust-avatars { display: flex; }
.ta {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-card); border: 1.5px solid var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; color: var(--accent-text);
  margin-left: -6px;
}
.ta:first-child { margin-left: 0; }
.ta-1 { background: var(--accent-dim); }
.ta-2 { background: var(--blue-dim); color: var(--blue-text); }
.ta-3 { background: var(--amber-dim); color: var(--amber-text); }
.ta-4 { background: var(--bg-hover); color: var(--text-tertiary); font-size: 10px; }

/* ══════════════════════════
   STATS BAR
   ══════════════════════════ */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  padding: 20px 32px;
  margin: 40px auto 0;
  max-width: 820px; width: 100%;
  animation: fadeUp .5s .42s var(--ease) both;
}
.stat-item { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: center; }
.stat-icon-wrap {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon-wrap.green { background: var(--accent-dim); border: 1px solid var(--accent-border); }
.stat-icon-wrap.green svg { color: var(--accent-text); }
.stat-icon-wrap.amber { background: var(--amber-dim); border: 1px solid var(--amber-border); }
.stat-icon-wrap.amber svg { color: var(--amber-text); }
.stat-icon-wrap.blue  { background: var(--blue-dim);  border: 1px solid var(--blue-border); }
.stat-icon-wrap.blue  svg { color: var(--blue-text); }
.stat-icon-wrap svg { width: 16px; height: 16px; }
.stat-num { font-size: 18px; font-weight: 700; color: var(--text-primary); letter-spacing: -.5px; line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.stat-divider { width: 1px; background: var(--border-hairline); height: 36px; flex-shrink: 0; }

/* ══════════════════════════
   SOCIAL BAR
   ══════════════════════════ */
.social-bar {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 50;
}
.social-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); writing-mode: vertical-rl;
  margin-bottom: 4px;
}
.social-btn {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  color: var(--text-tertiary);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all .15s var(--ease);
}
.social-btn svg { width: 13px; height: 13px; }
.social-btn:hover { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent-text); transform: translateX(-2px); }

/* ══════════════════════════
   FEATURES
   ══════════════════════════ */
.features {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  padding: 80px 6%;
}
.features-inner { max-width: 1100px; margin: 0 auto; }
.section-badge {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px;
  color: var(--accent-text);
  background: var(--accent-glow); border: 1px solid var(--accent-border);
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px); font-weight: 700;
  color: var(--text-primary); letter-spacing: -.8px;
  margin-bottom: 10px; max-width: 480px;
}
.section-desc {
  font-size: 14.5px; color: var(--text-secondary);
  max-width: 460px; line-height: 1.7; margin-bottom: 44px;
}

.features-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all .2s var(--ease);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
}
.feature-card:hover { border-color: var(--border-mid); transform: translateY(-3px); }
.feature-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fi-green { background: var(--accent-dim); border: 1px solid var(--accent-border); }
.fi-green svg { color: var(--accent-text); }
.fi-blue  { background: var(--blue-dim);   border: 1px solid var(--blue-border); }
.fi-blue  svg { color: var(--blue-text); }
.fi-amber { background: var(--amber-dim);  border: 1px solid var(--amber-border); }
.fi-amber svg { color: var(--amber-text); }
.feature-icon svg { width: 17px; height: 17px; }
.feature-card h3 { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.feature-card p  { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }

/* ══════════════════════════
   ANIMACIONES
   ══════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 960px) {
  nav { display: none; }
  .stats-bar { flex-wrap: wrap; gap: 16px; padding: 18px 20px; }
  .stat-divider { display: none; }
  .stat-item { flex: calc(50% - 8px); justify-content: flex-start; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .social-bar { display: none; }
}
@media (max-width: 600px) {
  .hero-title { letter-spacing: -1px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-outline { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .stat-item { flex: 100%; }
}