/* =========================================================
   MooGreen Technologies — Landing
   Paleta basada en el logo: verdes orgánicos + neutros sobrios
   ========================================================= */

:root {
  --green-900: #0f3a1f;
  --green-700: #1f7a3a;
  --green-600: #2ba748;
  --green-500: #3cc25c;
  --green-300: #8fcd89;
  --green-100: #e8f4ea;
  --green-50:  #f4faf5;

  --ink-900: #0b1410;
  --ink-700: #1f2a23;
  --ink-500: #4a584f;
  --ink-300: #8b958f;
  --ink-100: #d9dfdb;

  --bg:      #ffffff;
  --bg-alt:  #f7faf7;
  --line:    #e6ebe7;

  --shadow-sm: 0 1px 2px rgba(15,58,31,.05), 0 1px 3px rgba(15,58,31,.06);
  --shadow-md: 0 6px 24px rgba(15,58,31,.08), 0 2px 6px rgba(15,58,31,.04);
  --shadow-lg: 0 24px 60px rgba(15,58,31,.12);

  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1200px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Eyebrows / titles ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow--light {
  color: var(--green-300);
  background: rgba(143,205,137,.12);
}

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: inherit;
}

.section__lead {
  font-size: 17px;
  color: var(--ink-500);
  max-width: 720px;
  margin: 0 0 16px;
}
.section__lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__header {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 820px;
}

.accent { color: var(--green-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--green-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  color: var(--ink-900);
  border-color: var(--ink-100);
}
.btn--ghost:hover {
  border-color: var(--green-700);
  color: var(--green-700);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.95);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.nav__brand img {
  height: 72px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
}
.nav__links a:not(.nav__cta):hover { color: var(--green-700); }
.nav__cta {
  background: var(--green-700);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background .2s ease;
}
.nav__cta:hover { background: var(--green-900); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--green-50) 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(143,205,137,.35), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(43,167,72,.18), transparent 50%);
  pointer-events: none;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,122,58,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,122,58,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__content { max-width: 880px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 24px;
  color: var(--ink-900);
}
.hero__subtitle {
  font-size: 19px;
  color: var(--ink-500);
  max-width: 720px;
  margin: 0 0 32px;
  line-height: 1.6;
}
.hero__subtitle strong { color: var(--ink-900); font-weight: 600; }
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  max-width: 720px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 8px;
}
.hero__stats span {
  font-size: 13px;
  color: var(--ink-500);
}
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-300);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
}

/* ---------- STRIP ---------- */
.strip {
  background: var(--bg-alt);
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip__label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-300);
  margin: 0 0 16px;
}
.strip__items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-500);
  letter-spacing: .02em;
}

/* ---------- SECTIONS BASE ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--ink-900);
  color: #fff;
}
.section--dark .section__lead { color: rgba(255,255,255,.7); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ---------- CARDS (problema) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 28px;
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--green-300);
  background: rgba(143,205,137,.06);
}
.card__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  color: var(--green-300);
  line-height: 1;
  margin-bottom: 12px;
}
.card p {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,.78);
}

/* ---------- FEATURES (solución) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-500);
}

/* ---------- PLATAFORMA ---------- */
.platform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.platform__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.platform__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.platform__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--green-300));
}
.platform__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 16px;
}
.platform__card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--ink-900);
  line-height: 1.2;
}
.platform__card h3 em {
  font-style: italic;
  color: var(--green-700);
}
.platform__card p {
  font-size: 16px;
  color: var(--ink-500);
  margin: 0 0 24px;
}
.platform__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.platform__card ul li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-700);
}
.platform__card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green-100);
  border: 2px solid var(--green-600);
}
.platform__card ul li strong { color: var(--ink-900); }

/* ---------- COMPARATIVA ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
.compare th, .compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-500);
  background: var(--bg-alt);
}
.compare th.hl, .compare td.hl {
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 600;
}
.compare thead th.hl {
  color: var(--green-700);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:hover td:not(.hl) { background: var(--bg-alt); }

/* ---------- IMPACT ---------- */
.impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.impact__item {
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(143,205,137,.06), rgba(255,255,255,.02));
  transition: all .25s ease;
}
.impact__item:hover {
  border-color: var(--green-300);
  transform: translateY(-3px);
}
.impact__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 42px;
  color: var(--green-300);
  line-height: 1;
  margin-bottom: 14px;
}
.impact__label {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255,255,255,.72);
}

/* ---------- TIMELINE ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--green-300), transparent);
}
.timeline__item {
  position: relative;
  padding: 24px 24px 24px 64px;
  margin-bottom: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s ease;
}
.timeline__item:hover {
  transform: translateX(4px);
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 17px; top: 30px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-600);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--green-300);
}
.timeline__year {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 6px;
}
.timeline__item h4 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-900);
}
.timeline__item p {
  margin: 0 0 8px;
  color: var(--ink-500);
  font-size: 15px;
}
.timeline__inv {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--green-100);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* ---------- TEAM ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all .25s ease;
}
.member:hover {
  transform: translateY(-4px);
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}
.member__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-300));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  margin: 0 auto 18px;
}
.member h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}
.member span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.member p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-500);
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 100%, rgba(143,205,137,.25), transparent 50%),
    radial-gradient(circle at 0% 0%, rgba(143,205,137,.15), transparent 50%);
}
.cta__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
}
.cta p {
  margin: 0;
  font-size: 17px;
  color: rgba(255,255,255,.8);
  max-width: 480px;
}
.cta__form {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.cta__form label {
  display: block;
  margin-bottom: 16px;
}
.cta__form span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255,255,255,.85);
}
.cta__form input,
.cta__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.cta__form input::placeholder,
.cta__form textarea::placeholder { color: rgba(255,255,255,.45); }
.cta__form input:focus,
.cta__form textarea:focus {
  outline: none;
  border-color: var(--green-300);
  background: rgba(255,255,255,.1);
}
.cta__form .btn {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--green-900);
  margin-top: 8px;
}
.cta__form .btn:hover { background: var(--green-100); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.75);
  padding: 80px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer__brand img {
  height: 88px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(60deg) brightness(.9);
}
.footer__brand p {
  margin: 0;
  font-size: 14px;
  max-width: 320px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h5 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
}
.footer__cols a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255,255,255,.65);
}
.footer__cols a:hover { color: var(--green-300); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .platform { grid-template-columns: 1fr; }
  .impact { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 80px 0; }
  .hero { padding: 72px 0 96px; }
}

@media (max-width: 720px) {
  .nav__brand img { height: 56px; }
  .nav__inner { height: 80px; }
  .nav__links {
    position: fixed;
    inset: 80px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__cta { text-align: center; margin-top: 12px; }
  .nav__toggle { display: flex; }

  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .features { grid-template-columns: 1fr; }
  .impact { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 16px; }
  .platform__card { padding: 28px; }
  .timeline { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
