/* ═══════════════════════════ Tokens de marca ═══════════════════════════
   Celeste y dorado (bandera + Sol de Mayo, como el logo): celeste es el
   acento de marca en general (nav, badges, íconos); dorado queda reservado
   para los botones de acción principal, para que el "sol" llame a hacer
   clic. El verde NO es de marca — se usa aparte, solo para éxito/activo.
   Outfit para títulos (geométrica, sin el aire "elegante" del serif de antes),
   DM Sans para el resto (la misma que ya usa el login del SaaS). */
:root {
  --sky-1: #0E3A5F;
  --sky-2: #1C6690;
  --sky-3: #4F8FAE;

  --celeste-1: #6CACE4;
  --celeste-2: #2D6B9E;
  --celeste-pale: #DCEBF9;

  --gold-1: #F6B40E;
  --gold-2: #C98A0A;
  --gold-light: #FFCF4D;

  --earth: #16221A;
  --earth-light: #223020;

  --cream: #F7F6F1;
  --cream-card: #FFFFFF;

  --text-dark: #1B241C;
  --text-muted: #5C6B5E;
  --text-muted-2: #8A978C;

  --border: #E2E8DE;
  --radius: 14px;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  margin: 0 0 10px;
}
.eyebrow-dark { color: var(--celeste-2); opacity: 1; }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gold-1); color: var(--text-dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(246,180,14,0.5); }

/* En la grilla de planes, el dorado aparece solo al pasar el mouse — con los
   4 botones juntos, todos dorados a la vez se siente pesado. Por defecto
   quedan en contorno; el color llena recién con :hover, de a uno. */
.price-card .btn-primary {
  background: transparent;
  color: var(--gold-2);
  border: 1.5px solid var(--gold-1);
}
.price-card .btn-primary:hover {
  background: var(--gold-1);
  color: var(--text-dark);
  border-color: var(--gold-1);
}
.price-card-featured .btn-primary {
  color: var(--gold-1);
}

.btn-light { background: #fff; color: var(--text-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }

.btn-outline { background: transparent; color: var(--text-dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--celeste-1); color: var(--celeste-2); }

.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); border-color: #fff; }

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════ NAV ═══════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s, box-shadow 0.25s, padding 0.25s;
  padding: 22px 0;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(28,46,30,0.1);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  transition: color 0.25s;
}
.nav.scrolled .nav-logo { color: var(--text-dark); }
.nav-logo svg { width: 30px; height: 30px; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color 0.15s;
}
.nav.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover { color: var(--gold-1); }
.nav.scrolled .nav-links a:hover { color: var(--gold-2); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--text-dark) !important; }
.nav-login { opacity: 0.85; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: background 0.25s; }
.nav.scrolled .nav-toggle span { background: var(--text-dark); }

/* Botón de cerrar dentro del menú mobile: más visible y a mano que depender de
   volver a tocar la hamburguesa (que de entrada no se ve que sirva para cerrar). */
.nav-close {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 24px 140px;
}
/* Foto real (campo de cultivo al atardecer) en vez de ilustración — con un
   zoom lento tipo documental ("Ken Burns"), no un dibujo que se mueve. */
.hero-photo {
  position: absolute; inset: 0;
  background-image: url('../assets/hero-field.jpg');
  background-size: cover;
  background-position: center 45%;
  animation: hero-zoom 24s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
/* Oscurece la foto de abajo hacia arriba para que el texto blanco se lea
   bien sin tapar la escena real. */
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,58,95,0.55) 0%, rgba(14,58,95,0.28) 45%, rgba(14,25,15,0.65) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 740px; text-align: center; }
.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  color: #fff;
  line-height: 1.14;
  margin-bottom: 20px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(20,60,30,0.18);
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 10px rgba(20,60,30,0.15);
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 13px; color: rgba(255,255,255,0.8); }

/* ═══════════════════════════ FEATURES ═══════════════════════════ */
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; padding: 0 24px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; color: var(--text-dark); text-wrap: balance; }
.section-sub { margin-top: 10px; font-size: 15px; color: var(--text-muted); }

.features { padding: 110px 24px; max-width: 1160px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(28,46,30,0.08); }
.feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--celeste-pale);
  color: var(--celeste-2);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 19px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════ IA / VOZ (destacado) ═══════════════════════════ */
.ai-highlight {
  background: var(--sky-1);
  padding: 90px 24px;
  text-align: center;
}
.ai-highlight-inner { max-width: 620px; margin: 0 auto; }

.ai-mic {
  position: relative;
  width: 84px; height: 84px;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
}
.ai-mic-glow {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,193,242,0.35) 0%, transparent 72%);
  animation: ai-pulse 2.6s ease-in-out infinite;
}
@keyframes ai-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.ai-mic svg {
  position: relative; z-index: 2;
  width: 38px; height: 38px;
  color: var(--sky-3);
}
.ai-wave {
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 3px;
  z-index: 2;
}
.ai-wave span {
  width: 3px; height: 8px;
  background: var(--sky-3);
  border-radius: 2px;
  animation: ai-wave-bounce 1.1s ease-in-out infinite;
  opacity: 0.85;
}
.ai-wave span:nth-child(1) { animation-delay: 0s; }
.ai-wave span:nth-child(2) { animation-delay: 0.12s; }
.ai-wave span:nth-child(3) { animation-delay: 0.24s; }
.ai-wave span:nth-child(4) { animation-delay: 0.36s; }
.ai-wave span:nth-child(5) { animation-delay: 0.48s; }
@keyframes ai-wave-bounce {
  0%, 100% { height: 6px; }
  50%      { height: 16px; }
}

.ai-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-3);
  background: rgba(111,193,242,0.12);
  border: 1px solid rgba(111,193,242,0.3);
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.ai-highlight h2 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 700;
  color: var(--cream); margin-bottom: 16px;
}
.ai-highlight p {
  font-size: 16px; line-height: 1.65;
  color: rgba(250,248,242,0.72);
}

/* ═══════════════════════════ CÓMO FUNCIONA ═══════════════════════════ */
.como-funciona { padding: 20px 24px 110px; max-width: 1000px; margin: 0 auto; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.step { flex: 1; max-width: 260px; text-align: center; padding: 0 16px; }
.step-num {
  width: 44px; height: 44px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--celeste-1);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-line { flex: 0 0 60px; height: 1.5px; background: var(--border); margin-top: 22px; }

/* ═══════════════════════════ PLANES ═══════════════════════════ */
.pricing { padding: 20px 24px 120px; max-width: 1200px; margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(28,46,30,0.08); }
.price-card-featured {
  background: var(--earth);
  border-color: var(--earth);
  color: var(--cream);
}
.price-card-head { margin-bottom: 22px; }
.price-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--celeste-pale);
  color: var(--celeste-2);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.price-badge-light { background: rgba(190,214,178,0.18); color: #A9C79B; }
.price-card-head h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.price-card-featured .price-card-head h3 { color: var(--cream); }
.price-tag { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-amount { font-family: var(--font-display); font-size: 32px; font-weight: 700; }
.price-unit { font-size: 14px; color: var(--text-muted); }
.price-card-featured .price-unit { color: rgba(250,248,242,0.6); }
.price-period { font-size: 13px; color: var(--text-muted); }
.price-card-featured .price-period { color: rgba(250,248,242,0.6); }
.price-regular { font-size: 13px; color: var(--text-muted-2); text-decoration: line-through; }
.price-card-featured .price-regular { color: rgba(250,248,242,0.4); }

.price-features { margin-bottom: 26px; flex: 1; }
.price-features li {
  font-size: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.price-features li:first-child { border-top: none; }
.price-card-featured .price-features li { border-top-color: rgba(250,248,242,0.12); color: rgba(250,248,242,0.78); }

/* ═══════════════════════════ CTA FINAL ═══════════════════════════ */
.cta-final {
  background: linear-gradient(135deg, var(--celeste-2) 0%, var(--celeste-1) 100%);
  padding: 90px 24px;
  text-align: center;
}
.cta-final-inner h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-final-inner p { font-size: 16px; color: rgba(255,255,255,0.88); margin-bottom: 30px; }

/* ═══════════════════════════ FOOTER (tierra) ═══════════════════════════ */
.footer { background: var(--sky-1); padding: 56px 24px; text-align: center; }
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--cream);
  margin-bottom: 12px;
}
.footer-brand svg { width: 26px; height: 26px; }
.footer-tagline { font-size: 14px; color: rgba(250,248,242,0.55); margin-bottom: 18px; }
.footer-contacto { font-size: 13px; margin-bottom: 10px; }
.footer-contacto a { color: rgba(250,248,242,0.75); text-decoration: underline; text-underline-offset: 2px; }
.footer-contacto a:hover { color: var(--cream); }
.footer-copy { font-size: 12px; color: rgba(250,248,242,0.35); }

/* ═══════════════════════════ Responsive ═══════════════════════════ */
@media (max-width: 920px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-wrap: wrap; }
  .step-line { display: none; }
  .step { max-width: 100%; flex: 0 0 45%; margin-bottom: 30px; }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 260px;
    background: var(--sky-1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 22px;
    padding: 100px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a, .nav.scrolled .nav-links a { color: rgba(250,248,242,0.9) !important; }
  .nav-toggle { display: flex; }
  .nav-close { display: flex; }
  .nav-links a { font-size: 16px; }
  .nav-links .btn { width: 100%; }

  .hero { padding: 120px 20px 110px; min-height: auto; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }

  .features, .como-funciona, .pricing { padding-left: 20px; padding-right: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .step { flex: 0 0 100%; }
}
