/* LabAncestral · huerto_escolar.css
   Estilos exclusivos de la página Huerto escolar. */

.he-page {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: #f6efe1;
  color: #152514;
  font-family: 'IBM Plex Sans', sans-serif;
}

.he-page *,
.he-page *::before,
.he-page *::after {
  min-width: 0;
}

.he-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.he-hero {
  position: relative;
  padding: 70px 44px 58px;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.he-breadcrumb {
  margin-bottom: 24px;
  color: #9a8f74;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .16em;
  overflow-wrap: normal;
}

.he-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.he-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: end;
  gap: 48px;
}

.he-hero-copy {
  animation: he-rise .7s ease both;
}

.he-eyebrow {
  display: inline-block;
  padding: 6px 13px;
  margin-bottom: 20px;
  background: #ee9a1c;
  border-radius: 999px;
  color: #0e3d22;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.he-hero h1 {
  max-width: 100%;
  margin: 0 0 22px;
  color: #152514;
  font-family: 'Spectral', serif;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
}

.he-hero h1 em {
  color: #18713a;
  font-style: italic;
  font-weight: 500;
}

.he-hero-copy > p {
  max-width: 560px;
  margin: 0 0 26px;
  color: #54503f;
  font-size: 17px;
  line-height: 1.66;
}

.he-live-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 14px 24px;
  background: #18713a;
  border-radius: 999px;
  box-shadow: 0 14px 30px -16px rgba(24, 113, 58, .7);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.he-live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: #ee9a1c;
  border-radius: 50%;
  animation: he-pulse 1.6s infinite;
}

.he-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  animation: he-rise .95s ease both;
}

.he-stat {
  padding: 18px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid #e4d9c2;
  border-radius: 14px;
}

.he-stat strong {
  display: block;
  color: #18713a;
  font-family: 'Spectral', serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.he-stat span {
  display: block;
  margin-top: 7px;
  color: #6b6657;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.he-section {
  width: 100%;
  padding: 78px 44px;
}

.he-objectives {
  background: #f6efe1;
}

.he-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: #9a8f74;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.he-kicker > span {
  display: block;
  width: 28px;
  height: 1px;
  flex: 0 0 28px;
  background: #c2b48f;
}

.he-kicker--orange {
  color: #ee9a1c;
}

.he-kicker--orange > span {
  background: #ee9a1c;
}

.he-section h2,
.he-cta h2 {
  max-width: 620px;
  margin: 0 0 40px;
  color: #152514;
  font-family: 'Spectral', serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1.1;
}

.he-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.he-card {
  padding: 30px;
  background: #fff;
  border: 1px solid #e4d9c2;
  border-radius: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.he-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 48px -28px rgba(14, 61, 34, .4);
}

.he-card-number {
  margin-bottom: 14px;
  font-family: 'Spectral', serif;
  font-size: 40px;
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
}

.he-card-number--orange { color: #ee9a1c; }
.he-card-number--green { color: #18713a; }
.he-card-number--brown { color: #7a4f2e; }

.he-card h3 {
  margin: 0 0 10px;
  color: #1a2417;
  font-family: 'Spectral', serif;
  font-size: 22px;
  font-weight: 500;
}

.he-card p {
  margin: 0;
  color: #6b6657;
  font-size: 14.5px;
  line-height: 1.65;
}

.he-process {
  background: #0e3d22;
  color: #eae3d2;
}

.he-process h2 {
  color: #fff;
}

.he-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.he-step {
  padding: 26px;
  background: #0a3019;
  border: 1px solid #1f5a3e;
  border-radius: 14px;
}

.he-step strong {
  display: block;
  margin-bottom: 10px;
  color: #7fae89;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  overflow-wrap: normal;
}

.he-step p {
  margin: 0;
  color: #eae3d2;
  font-size: 15.5px;
  line-height: 1.55;
}

.he-cta {
  padding: 64px 44px;
  background: #f6efe1;
  border-top: 1px solid #e4d9c2;
  text-align: center;
}

.he-cta__inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.he-cta h2 {
  max-width: none;
  margin-bottom: 22px;
  font-size: 32px;
  line-height: 1.12;
}

.he-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.he-button {
  display: inline-flex;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.he-button--primary {
  background: #18713a;
  color: #fff;
}

.he-button--secondary {
  color: #16331c;
  border: 1px solid #d8c9a8;
}

@keyframes he-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes he-pulse {
  0% { box-shadow: 0 0 0 0 rgba(238, 154, 28, .7); }
  70% { box-shadow: 0 0 0 9px rgba(238, 154, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 154, 28, 0); }
}

@media (max-width: 920px) {
  .he-hero-grid,
  .he-grid-3,
  .he-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .he-hero-grid {
    gap: 38px;
  }

  .he-stats {
    max-width: 600px;
  }
}

@media (max-width: 700px) {
  .he-hero {
    padding: 50px 20px;
    background-position: 62% center;
  }

  .he-breadcrumb {
    font-size: 10px;
    letter-spacing: .08em;
    line-height: 1.6;
  }

  .he-hero h1 {
    font-size: clamp(38px, 12vw, 50px);
    line-height: 1.07;
  }

  .he-hero-copy > p {
    font-size: 16px;
  }

  .he-section {
    padding: 58px 20px;
  }

  .he-section h2 {
    margin-bottom: 30px;
    font-size: clamp(30px, 9vw, 38px);
  }

  .he-card,
  .he-step {
    padding: 24px 22px;
  }

  .he-cta {
    padding: 52px 20px;
  }

  .he-cta h2 {
    font-size: 29px;
  }

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

  .he-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .he-hero,
  .he-section,
  .he-cta {
    padding-right: 16px;
    padding-left: 16px;
  }

  .he-live-link {
    justify-content: center;
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
    text-align: center;
  }

  .he-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .he-stat {
    display: grid;
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .he-stat span {
    margin-top: 0;
  }
}

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