/* ================ TOKENS ================ */
:root {
  --green-900: #0a2a1f;
  --green-800: #0f3d2e;
  --green-700: #1a5240;
  --green-600: #2a6b52;
  --gold-500: #d4a55a;
  --gold-400: #e1b974;
  --gold-300: #ecd3a3;
  --cream-50: #fbf8f1;
  --cream-100: #f4eee0;
  --ink-900: #14201b;
  --ink-700: #3a463f;
  --ink-500: #6b7770;
  --ink-300: #c5ccc7;
  --white: #ffffff;

  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(20, 32, 27, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 32, 27, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 32, 27, 0.18);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ================ RESET ================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* ================ TYPOGRAPHY ================ */
.h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 1.2rem;
  font-variation-settings: "opsz" 120;
}
.h2--light { color: var(--cream-50); }
.h2 em {
  font-style: italic;
  color: var(--green-800);
  font-variation-settings: "opsz" 144;
}
.lead {
  font-size: 1.125rem;
  color: var(--ink-700);
  margin-bottom: 1.5rem;
  max-width: 56ch;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
  padding-left: 32px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 22px; height: 1px;
  background: currentColor;
}
.eyebrow--dark { color: var(--green-700); }

/* ================ BUTTONS ================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--primary {
  background: var(--green-800);
  color: var(--cream-50);
}
.btn--primary:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(251, 248, 241, 0.4);
}
.btn--ghost:hover {
  background: rgba(251, 248, 241, 0.1);
  border-color: var(--cream-50);
}

/* ================ NAV ================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .35s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 38px;
}
.nav__logo-img {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity .35s var(--ease);
}
.nav__logo-img--dark { position: absolute; inset: 0; opacity: 0; }
.nav.is-scrolled .nav__logo-img--light { opacity: 0; }
.nav.is-scrolled .nav__logo-img--dark { opacity: 1; }
.nav__menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__menu a {
  font-size: 0.92rem;
  color: var(--cream-50);
  font-weight: 500;
  transition: color .25s var(--ease), opacity .25s var(--ease);
  opacity: 0.85;
}
.nav__menu a:hover { opacity: 1; color: var(--gold-400); }
.nav__cta {
  background: var(--gold-500);
  color: var(--green-900);
}
.nav__cta:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
}
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cream-50);
  transition: all .3s var(--ease);
}

/* Nav scrolled state */
.nav.is-scrolled {
  background: rgba(251, 248, 241, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.nav.is-scrolled .nav__menu a {
  color: var(--ink-900);
}
.nav.is-scrolled .nav__toggle span { background: var(--ink-900); }

/* ================ HERO ================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--cream-50);
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero__bg-image {
  position: absolute;
  inset: -10% 0;
  background:
    url("images/hero-corn.jpg") center/cover no-repeat,
    linear-gradient(180deg, #0a2a1f 0%, #0f3d2e 100%);
  will-change: transform;
  transition: transform .1s linear;
  z-index: 0;
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 42, 31, 0.55) 0%, rgba(10, 42, 31, 0.35) 40%, rgba(10, 42, 31, 0.78) 100%),
    linear-gradient(110deg, rgba(10, 42, 31, 0.7) 0%, rgba(10, 42, 31, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}
.hero .eyebrow {
  color: var(--gold-400);
}
.hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 144;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-400);
  font-weight: 400;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(251, 248, 241, 0.85);
  max-width: 62ch;
  margin-bottom: 2.4rem;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(251, 248, 241, 0.4);
  border-radius: 999px;
  z-index: 3;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--gold-400);
  border-radius: 999px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ================ SECTIONS ================ */
.section {
  padding: 120px 0;
  position: relative;
}
.section--about { background: var(--cream-50); }
.section--products { background: var(--white); }
.section--sectors {
  background: var(--green-900);
  color: var(--cream-50);
  position: relative;
  overflow: hidden;
}
.sectors__bg {
  position: absolute;
  inset: 0;
  background: url("images/aplicaciones.jpg") center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}
.section--sectors::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(10, 42, 31, 0.92) 0%, rgba(15, 61, 46, 0.88) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(212, 165, 90, 0.12) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.section--sectors .container { position: relative; z-index: 2; }
.section--why { background: var(--cream-100); }
.section--contact { background: var(--cream-50); padding-bottom: 100px; }

.section__head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section__head--light .eyebrow { color: var(--gold-400); }
.section__head .lead { margin-left: auto; margin-right: auto; }

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

/* ================ ABOUT ================ */
.checklist {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  padding-left: 32px;
  position: relative;
  color: var(--ink-700);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-800);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6l3 3 5-6' stroke='%23fbf8f1' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.about__visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
}
.about__photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--cream-100);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10, 42, 31, 0.35));
  pointer-events: none;
}
.about__card {
  position: absolute;
  background: var(--cream-50);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  z-index: 2;
}
.about__card--1 { top: 30px; left: -20px; }
.about__card--2 { bottom: 50px; right: -20px; }
.dot {
  width: 10px; height: 10px;
  background: var(--green-700);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(42, 107, 82, 0.15);
}
.dot--gold {
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(212, 165, 90, 0.18);
}

/* ================ SHOWCASE BANNER ================ */
.showcase {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.showcase__image {
  position: absolute;
  inset: -10% 0;
  background: url("images/productos-banner.jpg") center/cover no-repeat;
  will-change: transform;
}
.showcase__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(10, 42, 31, 0.78) 0%, rgba(10, 42, 31, 0.4) 60%, rgba(10, 42, 31, 0.2) 100%);
}
.showcase__text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream-50);
  max-width: 720px;
  letter-spacing: -0.015em;
}
.showcase__text em {
  font-style: italic;
  color: var(--gold-400);
  font-weight: 400;
}

/* ================ PRODUCTS ================ */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product {
  background: var(--cream-50);
  border: 1px solid rgba(20, 32, 27, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.product::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green-700), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 61, 46, 0.15);
}
.product:hover::before { transform: scaleX(1); }
.product--wide {
  grid-column: span 2;
  background:
    linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 100%);
}
.product__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all .3s var(--ease);
}
.product__icon svg { width: 38px; height: 38px; }
.product__icon--fructosa { background: #fef3e2; color: #c97834; }
.product__icon--dextrosa { background: #eef2e6; color: #5a7a3e; }
.product__icon--polidextrosa { background: #f0e8f6; color: #6b4a8e; }
.product__icon--aceites { background: #fdf4d8; color: #a07a25; }
.product__icon--citrico { background: #e2efe5; color: #2a6b52; }

.product:hover .product__icon {
  transform: rotate(-4deg) scale(1.06);
}
.product h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.product p {
  color: var(--ink-700);
  margin-bottom: 20px;
  font-size: 0.97rem;
}
.product__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.product__tags li {
  font-size: 0.78rem;
  padding: 5px 12px;
  background: rgba(15, 61, 46, 0.07);
  color: var(--green-800);
  border-radius: 999px;
  font-weight: 500;
}
.product__link {
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .25s var(--ease);
}
.product__link:hover { gap: 10px; color: var(--gold-500); }

/* ================ SECTORS ================ */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sector {
  padding: 32px 28px;
  border: 1px solid rgba(251, 248, 241, 0.12);
  border-radius: var(--radius);
  background: rgba(251, 248, 241, 0.03);
  transition: all .35s var(--ease);
  position: relative;
}
.sector:hover {
  background: rgba(251, 248, 241, 0.06);
  border-color: var(--gold-500);
  transform: translateY(-4px);
}
.sector span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  color: var(--gold-400);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.sector h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--cream-50);
}
.sector p {
  font-size: 0.92rem;
  color: rgba(251, 248, 241, 0.7);
}

/* ================ WHY (intro split) ================ */
.why__intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.why__head .h2 { margin-bottom: 1.2rem; }
.why__visual {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.why__visual:hover img { transform: scale(1.04); }
.why__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(10, 42, 31, 0.3));
  pointer-events: none;
}

/* ================ FEATURES ================ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature {
  background: var(--cream-50);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature__num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--gold-500);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.feature h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 0.95rem;
  color: var(--ink-700);
}

/* ================ CONTACT ================ */
.contact__wrap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.contact__wrap .section__head { margin-bottom: 56px; }
.contact__wrap .eyebrow { padding-left: 0; }
.contact__wrap .eyebrow::before { display: none; }
.contact__wrap .lead { margin-left: auto; margin-right: auto; }

.contact__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid rgba(20, 32, 27, 0.1);
  border-bottom: 1px solid rgba(20, 32, 27, 0.1);
  margin-bottom: 48px;
}
.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.contact__item strong {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact__item a, .contact__item span {
  font-size: 1.05rem;
  color: var(--ink-900);
  font-weight: 500;
  line-height: 1.4;
}
.contact__item a:hover { color: var(--green-700); }

.contact__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn--outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn--outline:hover {
  background: var(--green-800);
  color: var(--cream-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ================ FOOTER ================ */
.footer {
  background: var(--green-900);
  color: rgba(251, 248, 241, 0.7);
  padding: 64px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(251, 248, 241, 0.1);
}
.footer__logo {
  display: inline-block;
  margin-bottom: 18px;
}
.footer__logo img {
  height: 36px;
  width: auto;
  display: block;
}
.footer__brand p { font-size: 0.92rem; max-width: 240px; }
.footer__col h5 {
  color: var(--cream-50);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  font-size: 0.92rem;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--gold-400); }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ================ REVEAL ================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================ RESPONSIVE ================ */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .grid--2 { grid-template-columns: 1fr; gap: 48px; }
  .products { grid-template-columns: 1fr; }
  .product--wide { grid-column: span 1; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .grid--contact { gap: 48px; }
  .hero__stats { gap: 32px; }
  .hero__stats strong { font-size: 2rem; }
  .about__visual { aspect-ratio: 3/2; max-width: 500px; }
  .why__intro { grid-template-columns: 1fr; gap: 40px; margin-bottom: 56px; }
  .why__visual { max-width: 540px; aspect-ratio: 16/10; }
  .showcase { height: 280px; }
  .contact__info { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .showcase { height: 220px; }
  .showcase__text { font-size: 1.4rem; }
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream-50);
    padding: 24px;
    gap: 18px;
    border-top: 1px solid rgba(20, 32, 27, 0.08);
    box-shadow: var(--shadow-md);
  }
  .nav__menu.is-open a { color: var(--ink-900); }
  .nav.is-scrolled .nav__menu.is-open { background: var(--cream-50); }
  .section { padding: 64px 0; }
  .hero { padding: 100px 0 60px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .sectors { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1fr; padding: 32px 0; gap: 24px; margin-bottom: 32px; }
  .contact__cta { flex-direction: column; align-items: stretch; }
  .contact__cta .btn { justify-content: center; }
  .nav__logo { height: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section__head { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
