:root {
  --verde-oscuro: #1B5E20;
  --verde-medio: #4CAF50;
  --verde-claro: #A5D6A7;
  --verde-lima: #C5E86C;
  --texto: #1a2e1a;
  --texto-suave: #4a5d4a;
  --fondo: #f4f7f4;
  --blanco: #ffffff;
  --sombra: 0 4px 24px rgba(27, 94, 32, 0.12);
  --radio: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.landing-body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container-landing {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 767.98px) {
  .container-landing {
    padding: 0 1rem;
  }
}

/* Header */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 94, 32, 0.08);
  transition: box-shadow 0.2s;
}

.landing-header.scrolled {
  box-shadow: var(--sombra);
}

.landing-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--verde-oscuro);
}

.landing-brand img {
  width: 44px;
  height: 44px;
}

.landing-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.landing-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texto-suave);
  transition: color 0.15s;
}

.landing-nav a:hover {
  color: var(--verde-oscuro);
}

.landing-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--verde-oscuro);
  color: var(--blanco);
}

.btn-primary:hover {
  background: #145218;
  box-shadow: 0 4px 16px rgba(27, 94, 32, 0.3);
}

.btn-accent {
  background: var(--verde-lima);
  color: var(--verde-oscuro);
}

.btn-accent:hover {
  background: #b8db5e;
}

.btn-outline {
  background: transparent;
  color: var(--verde-oscuro);
  border: 2px solid var(--verde-oscuro);
}

.btn-outline:hover {
  background: var(--verde-oscuro);
  color: var(--blanco);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--blanco);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--verde-oscuro);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(27, 94, 32, 0.1);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--texto-suave);
  border-bottom: 1px solid rgba(27, 94, 32, 0.06);
}

/* Hero */
.hero {
  padding: 7rem 0 4rem;
  background: linear-gradient(160deg, #e8f5e9 0%, #f4f7f4 50%, #fff 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--verde-lima);
  color: var(--verde-oscuro);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--verde-oscuro);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--texto-suave);
  margin: 0 0 1.75rem;
  max-width: 540px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero__cta-primary {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

.hero__cta-note {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--verde-oscuro);
  font-weight: 600;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero__stat {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radio);
  border: 1px solid rgba(27, 94, 32, 0.08);
}

.hero__stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--verde-oscuro);
}

.hero__stat span {
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.hero__image {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 16 / 10;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--fondo);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--verde-medio);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--verde-oscuro);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section__desc {
  color: var(--texto-suave);
  margin: 0;
  font-size: 1.05rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 1px solid rgba(27, 94, 32, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 94, 32, 0.15);
}

.service-card__img {
  aspect-ratio: 400 / 280;
  object-fit: cover;
  width: 100%;
}

.service-card__body {
  padding: 1.5rem;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--verde-lima);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--verde-oscuro);
  margin: 0 0 0.5rem;
}

.service-card p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--blanco);
  border-radius: var(--radio);
  border: 1px solid rgba(27, 94, 32, 0.08);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-oscuro);
  color: var(--verde-lima);
  font-weight: 800;
  border-radius: 50%;
  font-size: 1.1rem;
}

.process-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--verde-oscuro);
}

.process-step p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--verde-oscuro), #2E7D32);
  color: var(--blanco);
  text-align: center;
}

.cta-band h2 {
  color: var(--blanco);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.cta-band .btn-accent {
  font-size: 1.05rem;
}

/* Footer */
.landing-footer {
  background: #0d2810;
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.landing-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.landing-footer h4 {
  color: var(--verde-lima);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.landing-footer p {
  margin: 0 0 0.5rem;
}

.landing-footer a {
  color: var(--verde-claro);
}

.landing-footer a:hover {
  color: var(--verde-lima);
}

.landing-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
}

.landing-footer__credits {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.65;
}

.landing-footer__credits {
  margin-top: 0.5rem;
  opacity: 0.55;
  font-size: 0.75rem;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-float__label {
  display: none;
}

/* Tablet+ */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.header-wa-text {
  display: none;
}

@media (min-width: 768px) {
  .header-wa-text {
    display: inline;
  }

  .menu-toggle {
    display: none;
  }

  .landing-nav {
    display: flex;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 8rem 0 5rem;
  }

  .whatsapp-float {
    width: auto;
    height: auto;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    gap: 0.5rem;
    font-size: 1rem;
  }

  .whatsapp-float__label {
    display: inline;
    font-weight: 600;
    font-size: 0.95rem;
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .landing-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
  }

  .hero {
    padding: 6.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
  }

  .hero__cta-login {
    order: 3;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .landing-header__actions .btn-outline {
    display: none;
  }

  .cta-band {
    padding: 3rem 0;
  }
}
