:root {
  color-scheme: light;
  --primary: #2a8f3d;
  --primary-dark: #17642b;
  --primary-soft: #42b45b;
  --bg: #eef8ef;
  --text: #0f172a;
  --muted: #2d4a33;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  --border-dark: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, #f7fdf8 0%, #e0f8e4 45%, #aee9b5 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #278f43 0%, #61d874 48%, #145b2a 100%);
  padding: 1rem 1.5rem 4rem;
  min-height: 100vh;
  box-shadow: inset 0 -90px 160px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--border-dark);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
  opacity: 0.45;
}

.hero::before {
  width: 16rem;
  height: 16rem;
  top: -6rem;
  left: -4rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero::after {
  width: 12rem;
  height: 12rem;
  bottom: -3rem;
  right: -2rem;
  background: rgba(255, 255, 255, 0.06);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(15, 23, 42, 0.22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(248, 250, 252, 0.95);
  border-radius: 1rem;
  padding-inline: 1rem;
}

.brand {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--primary);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.hero-content {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
}

.hero-title {
  grid-column: 1 / -1;
  text-align: center;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: minmax(24rem, 1.1fr) minmax(22rem, 38rem) minmax(24rem, 1.1fr);
  gap: 2rem;
  align-items: stretch;
  justify-content: center;
}

.hero-image-wrap {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 1.5rem;
  align-self: stretch;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.11);
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 1.5rem;
  padding: 2.5rem;
  color: white;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
}

.hero-panel h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-panel p {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #f0fdf4;
  font-weight: 700;
}

.hero-img {
  width: 100%;
  max-width: 640px;
  justify-self: center;
  height: auto;
  border-radius: 2rem;
  border: 2px solid rgba(15, 23, 42, 0.22);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-img:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.26);
}

.hero-image-wrap {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.hero-cta-wrap {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: #f7fff8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title h1 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  letter-spacing: 0.01em;
}

.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

.lang-es,
.lang-en {
  display: none;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

h1,
h2 {
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ffffff;
  margin-top: 0.5rem;
  text-align: left;
  display: inline-block;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero-description {
  margin-top: 1rem;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: #f5fff6;
  text-align: left;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-text,
.section-heading p,
.about-grid p,
.contact-card p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: white;
  border: 1.5px solid rgba(15, 23, 42, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.hero-cta {
  width: min(20rem, 100%);
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
  text-align: center;
  border-radius: 999px;
}

.btn-secondary {
  color: var(--primary);
  background: #e0e7ff;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.alt {
  background: white;
  border-radius: 1rem;
  margin-top: 1rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.cards,
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card,
.testimonial,
.contact-card {
  background: var(--card);
  padding: 1.4rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 1rem;
}

.check-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
}

.stats {
  display: grid;
  gap: 1rem;
}

.stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
}

.testimonials {
  grid-template-columns: repeat(2, 1fr);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

input,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid #c7d2fe;
  border-color: var(--primary);
}

.form-message {
  color: var(--primary);
  font-weight: 600;
  min-height: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  color: white;
  text-align: center;
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-top: 1.5px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 3.5rem;
    right: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 0.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-content,
  .about-grid,
  .contact-card,
  .cards,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
