/* =========================================================
   InvestGrow — Landing pixel perfect (v1.6.5)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.ig-landing,
.ig-landing *,
.ig-landing *::before,
.ig-landing *::after,
.ig-modal-overlay,
.ig-modal-overlay *,
.ig-modal-overlay *::before,
.ig-modal-overlay *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body.investgrow-fullscreen { background: #fff; margin: 0; }

.ig-landing {
  --green-700: #1B7A36; --green-600: #22A547; --green-500: #2BB14F; --green-400: #3FC066;
  --green-50: #EAF7EE; --green-25: #F4FBF6;
  --ink-900: #0F1B14; --ink-700: #1F2A23; --ink-600: #2C3A30;
  --ink-500: #5B6B60; --ink-400: #7C8A82; --ink-300: #A9B3AC;
  --soft: #F6F8F6; --line: #E8EDE9; --line-2: #EFF2EF;
  --amber: #F5A623; --red: #E74C3C;
  --radius-lg: 22px; --radius-md: 16px;
  --shadow-soft: 0 1px 2px rgba(16,24,40,.03), 0 4px 14px rgba(16,24,40,.04);

  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 18px 24px;
  background: #fff;
  min-height: 100svh;
}

/* ===== HERO ===== */
.ig-l-hero { padding: 8px 0 0; }
.ig-l-hero-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.ig-l-brand { display: flex; align-items: center; gap: 10px; }
.ig-l-brand-logo {
  width: 46px; height: 46px;
  background: linear-gradient(160deg, #2BB14F, #1F8F3E);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(34, 165, 71, .28);
  overflow: hidden;
}
.ig-l-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.ig-l-brand-name { font-weight: 700; font-size: 22px; letter-spacing: -.5px; color: var(--ink-900); }
.ig-l-help { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.ig-l-help-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-700); background: #fff;
}
.ig-l-help-text { font-size: 12px; line-height: 1.25; }
.ig-l-help-text strong { display: block; font-weight: 700; color: var(--ink-900); font-size: 13px; }
.ig-l-help-text span { color: var(--green-600); font-weight: 600; }

.ig-l-hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: center;
  position: relative;
}
.ig-l-hero-text { padding-right: 4px; }
.ig-l-hero-title {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--ink-900);
}
.ig-l-hero-title .accent {
  color: var(--green-600);
  display: block;
  margin-top: 2px;
}
.ig-l-hero-title .sprout {
  display: inline-block; width: 22px; height: 22px;
  vertical-align: -3px;
}
.ig-l-hero-sub {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.5;
}
.ig-l-hero-illu {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Sale fuera del padding para dar el efecto de la imagen */
  margin-right: -18px;
}
.ig-l-hero-illu svg,
.ig-l-hero-illu img {
  width: 115%;
  height: 115%;
  display: block;
  object-fit: contain;
}

/* ===== TRUST ===== */
.ig-l-trust {
  margin-top: 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 12px;
  box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.ig-l-trust-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 8px; padding: 0 4px; position: relative;
}
.ig-l-trust-item + .ig-l-trust-item::before {
  content: ""; position: absolute;
  left: -3px; top: 10%; bottom: 10%;
  width: 1px; background: var(--line-2);
}
.ig-l-trust-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.ig-l-trust-icon img { max-width: 60%; max-height: 60%; object-fit: contain; }
.ig-l-trust-title { font-weight: 700; font-size: 13px; color: var(--ink-900); line-height: 1.25; }
.ig-l-trust-desc { font-size: 11px; color: var(--ink-500); line-height: 1.4; }

/* ===== SECTIONS ===== */
.ig-l-section {
  margin-top: 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 16px; box-shadow: var(--shadow-soft);
}
.ig-l-section h2 {
  font-size: 19px; font-weight: 800;
  letter-spacing: -.5px; color: var(--ink-900);
  margin-bottom: 22px; display: flex; align-items: center; gap: 6px;
}
.ig-l-section h2 .sprout { width: 18px; height: 18px; display: inline-block; color: var(--green-600); }

/* ===== STEPS ===== */
.ig-l-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 0;
  position: relative;
}
.ig-l-step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  position: relative;
  padding: 14px 2px 0;
}
.ig-l-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-600); color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff;
  box-shadow: 0 3px 8px rgba(34, 165, 71, .35);
  margin-bottom: -13px;
  position: relative; z-index: 2;
}
.ig-l-step-circle {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--green-25);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
}
.ig-l-step-circle svg { width: 50px; height: 50px; }
.ig-l-step-circle img { width: 78%; height: 78%; object-fit: contain; }
.ig-l-step-title { font-weight: 700; font-size: 12.5px; color: var(--ink-900); margin-bottom: 4px; line-height: 1.25; }
.ig-l-step-desc { font-size: 10.5px; color: var(--ink-500); line-height: 1.4; padding: 0 2px; }
.ig-l-step-arrow {
  position: absolute;
  top: 52px;
  right: -14px;
  color: var(--green-400);
  width: 28px; height: 12px;
  z-index: 1;
}
.ig-l-step:last-child .ig-l-step-arrow { display: none; }

/* ===== CROPS ===== */
.ig-l-crops {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 -2px;
  scrollbar-width: none;
}
.ig-l-crops::-webkit-scrollbar { display: none; }
.ig-l-crop {
  flex: 0 0 calc(20% - 8px);
  min-width: 118px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  box-shadow: var(--shadow-soft);
}
.ig-l-crop-img {
  width: 64px; height: 64px;
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
}
.ig-l-crop-img svg { width: 100%; height: 100%; display: block; }
.ig-l-crop-img img { width: 100%; height: 100%; object-fit: contain; }
.ig-l-crop-name { font-weight: 700; font-size: 13px; color: var(--ink-900); }
.ig-l-crop-yield { font-weight: 800; font-size: 13px; color: var(--green-600); margin-top: 2px; }
.ig-l-crop-time {
  width: 100%;
  text-align: center;
  font-size: 11px; font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
  margin-top: 8px;
  background: #E8F6EC; color: #1F8F3E;
}
.ig-l-crop:nth-child(1) .ig-l-crop-time { background: #E8F6EC; color: #1F8F3E; }
.ig-l-crop:nth-child(2) .ig-l-crop-time { background: #FFF4DC; color: #B5791C; }
.ig-l-crop:nth-child(3) .ig-l-crop-time { background: #E8EFFE; color: #3D5BCC; }
.ig-l-crop:nth-child(4) .ig-l-crop-time { background: #EFE9FB; color: #6A4FCC; }
.ig-l-crop:nth-child(5) .ig-l-crop-time { background: #FDE8E8; color: #C0392B; }

/* Risk legend */
.ig-l-risk-legend {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--ink-700);
  font-weight: 600;
}
.ig-l-rl-check { display: inline-flex; align-items: center; }
.ig-l-rl-label { color: var(--ink-700); font-weight: 700; }
.ig-l-rl-item { display: inline-flex; align-items: center; gap: 5px; }
.ig-l-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.ig-l-dot.bajo { background: var(--green-500); }
.ig-l-dot.medio { background: var(--amber); }
.ig-l-dot.alto { background: var(--red); }

/* ===== STATS (banda verde sólida) ===== */
.ig-l-stats {
  margin-top: 18px;
  background: linear-gradient(135deg, #2BB14F, #1F8F3E);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  box-shadow: 0 8px 18px rgba(34, 165, 71, .22);
}
.ig-l-stat {
  display: flex; align-items: center;
  gap: 9px; padding: 0 2px;
  position: relative;
  color: #fff;
}
.ig-l-stat + .ig-l-stat::before {
  content: ""; position: absolute;
  left: -3px; top: 10%; bottom: 10%;
  width: 1px; background: rgba(255, 255, 255, .25);
}
.ig-l-stat-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ig-l-stat-icon img { max-width: 100%; max-height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.ig-l-stat-num { font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -.4px; line-height: 1; }
.ig-l-stat-label { font-size: 10.5px; color: rgba(255, 255, 255, .9); margin-top: 3px; line-height: 1.2; }

/* ===== WHY (¿Por qué elegir?) ===== */
.ig-l-why {
  margin-top: 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 10px;
  align-items: center;
}
.ig-l-why-img {
  display: flex; align-items: center; justify-content: center;
}
.ig-l-why-img svg,
.ig-l-why-img img {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
  object-fit: contain;
}
.ig-l-why-body { display: flex; flex-direction: column; gap: 10px; }
.ig-l-why-title {
  font-size: 16px; font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -.4px;
  line-height: 1.25;
}
.ig-l-why-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ig-l-why-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--ink-700);
  line-height: 1.4;
  font-weight: 500;
}
.ig-l-why-list li svg { flex-shrink: 0; margin-top: 1px; }

/* ===== CTA ===== */
.ig-l-cta {
  margin-top: 18px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.ig-l-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 17px 14px;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 15px;
  border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  font-family: inherit; text-decoration: none;
  width: 100%;
}
.ig-l-btn:active { transform: scale(.98); }
.ig-l-btn-primary {
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: #fff;
  box-shadow: 0 8px 18px rgba(34, 165, 71, .3);
}
.ig-l-btn-secondary {
  background: #fff;
  border: 1.5px solid var(--green-600);
  color: var(--green-600);
}
.ig-l-btn .sprout { width: 18px; height: 18px; }

/* ===== SECURITY (footer) ===== */
.ig-l-security {
  margin-top: 18px;
  text-align: center;
}
.ig-l-security-title {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-600);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}
.ig-l-security-title strong { color: var(--green-600); font-weight: 700; }
.ig-l-security-desc {
  font-size: 11.5px;
  color: var(--ink-500);
  line-height: 1.4;
  max-width: 320px;
  margin: 0 auto;
}

/* ===== LEGAL ===== */
.ig-l-legal {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-500);
  text-align: center;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.ig-l-legal a { color: var(--green-600); text-decoration: none; font-weight: 600; }

/* ===== MODAL ===== */
.ig-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 27, 20, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 9998;
  display: none;
  align-items: flex-end; justify-content: center;
}
.ig-modal-overlay.open { display: flex; animation: igFadeIn .2s ease; }
@keyframes igFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ig-modal {
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 24px 22px 28px;
  position: relative;
  max-height: 92svh;
  overflow-y: auto;
  animation: igSlideUp .28s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .15);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
@media (min-width: 520px) {
  .ig-modal-overlay { align-items: center; }
  .ig-modal { border-radius: 22px; }
}
@keyframes igSlideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ig-modal-handle { width: 40px; height: 4px; background: var(--line, #E8EDE9); border-radius: 4px; margin: -8px auto 14px; }
.ig-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--soft, #F6F8F6);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-600, #2C3A30);
}
.ig-modal-title { font-size: 22px; font-weight: 800; color: var(--ink-900, #0F1B14); letter-spacing: -.5px; margin-bottom: 6px; }
.ig-modal-sub { font-size: 13px; color: var(--ink-500, #5B6B60); margin-bottom: 22px; }

.ig-field { margin-bottom: 14px; }
.ig-field label {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-500, #5B6B60);
  margin-bottom: 6px;
}
.ig-field input {
  width: 100%; padding: 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line, #E8EDE9);
  background: var(--soft, #F6F8F6);
  font-family: inherit; font-size: 15px;
  color: var(--ink-900, #0F1B14);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
}
.ig-field input:focus {
  border-color: var(--green-600, #22A547);
  box-shadow: 0 0 0 3px rgba(34, 165, 71, .14);
  background: #fff;
}
.ig-field input::placeholder { color: var(--ink-300, #A9B3AC); }
.ig-pw-wrap { position: relative; }
.ig-pw-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--ink-400, #7C8A82);
  padding: 4px; line-height: 0;
}
.ig-row-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ig-row-remember input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-600, #22A547); cursor: pointer; }
.ig-row-remember label {
  font-size: 13px; color: var(--ink-500, #5B6B60);
  font-weight: 600; cursor: pointer;
  text-transform: none; letter-spacing: 0;
  margin-bottom: 0;
}
.ig-modal-btn {
  width: 100%; padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2BB14F, #22A547);
  color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: 0 8px 18px rgba(34, 165, 71, .3);
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: transform .12s, opacity .15s;
}
.ig-modal-btn:active { transform: scale(.98); opacity: .92; }
.ig-forgot {
  display: block; text-align: center;
  margin-top: 14px;
  font-size: 13px; color: var(--green-600, #22A547);
  font-weight: 700; text-decoration: none;
}
.ig-forgot:hover { text-decoration: underline; }
.ig-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 8px;
}
.ig-alert.error { background: #FEF2F2; border: 1.5px solid #FECACA; color: #DC2626; }
.ig-modal-switch { margin-top: 16px; text-align: center; font-size: 13px; color: var(--ink-500, #5B6B60); }
.ig-modal-switch a { color: var(--green-600, #22A547); font-weight: 700; text-decoration: none; cursor: pointer; }

/* ===== Responsive tweaks ===== */
@media (max-width: 380px) {
  .ig-l-hero-title { font-size: 26px; }
  .ig-l-trust { padding: 14px 8px; }
  .ig-l-trust-title { font-size: 12px; }
  .ig-l-trust-desc { font-size: 10.5px; }
  .ig-l-step-circle { width: 62px; height: 62px; }
  .ig-l-step-circle svg { width: 44px; height: 44px; }
  .ig-l-step-title { font-size: 11.5px; }
  .ig-l-step-desc { font-size: 10px; }
  .ig-l-step-arrow { right: -12px; width: 24px; }
  .ig-l-stat-num { font-size: 14px; }
  .ig-l-stat-label { font-size: 9.5px; }
}
