:root {
  --navy: #102b4a;
  --navy-700: #27425f;
  --green-900: #12382b;
  --green-700: #1f5a43;
  --gold: #f2c400;
  --wood-600: #9a6536;
  --wood-100: #f2e7d8;
  --ink: #17211d;
  --muted: #5d6a64;
  --line: #d9e0dc;
  --paper: #fbfaf7;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 43, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(16, 43, 74, 0.12);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-title {
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-domain {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
  white-space: nowrap;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--navy);
}

.portal-link {
  font-weight: 750;
}

.language-switcher {
  display: flex;
  gap: 6px;
}

.language-switcher button,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.language-switcher button.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  margin-left: auto;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 94px));
  padding: 0;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  min-height: min(680px, calc(100svh - 94px));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: end;
  padding: 118px clamp(20px, 6vw, 78px) 92px;
}

.hero-slide.active {
  display: grid;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}

.hero-slide[data-slide-scene="nursery"] img {
  object-position: 68% center;
}

.hero-slide[data-slide-scene="plantation"] img {
  object-position: center 54%;
}

.hero-slide[data-slide-scene="blocks"] img {
  object-position: 58% center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 25, 44, 0.64) 0%, rgba(8, 25, 44, 0.42) 42%, rgba(8, 25, 44, 0.14) 100%),
    linear-gradient(0deg, rgba(8, 25, 44, 0.24), rgba(8, 25, 44, 0.02) 45%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 830px;
}

.hero-watermark {
  position: absolute;
  right: clamp(20px, 6vw, 76px);
  top: 130px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(36px, 7vw, 112px);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  filter: blur(0.2px);
  pointer-events: none;
}

.hero-controls {
  position: absolute;
  left: clamp(20px, 6vw, 78px);
  right: clamp(20px, 6vw, 78px);
  bottom: 28px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-controls button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  width: 13px;
  height: 13px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(12px);
  overflow: hidden;
  text-indent: -9999px;
}

.hero-controls button.active {
  width: 42px;
  background: var(--gold);
  border-color: var(--gold);
  color: #1d1800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--wood-600);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.band .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 700px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 820;
}

.button.primary {
  background: var(--gold);
  color: #1d1800;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.section {
  padding: 76px clamp(20px, 6vw, 78px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p,
.large-copy {
  color: var(--muted);
  font-size: 18px;
}

.band {
  background: var(--navy);
  color: var(--white);
}

.band .large-copy,
.band .feature-card p {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.feature-grid,
.portal-grid {
  display: grid;
  gap: 18px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

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

.news-grid.compact {
  margin-top: 26px;
}

.news-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.news-card time {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.news-card h2,
.news-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.news-card p {
  margin: 0;
  color: var(--text);
}

.featured-news {
  grid-column: span 2;
}

.feature-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.feature-panel,
.portal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card p,
.feature-panel p,
.portal-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.muted-cards .feature-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: var(--white);
}

.company-profile-section {
  background: #f4f8f2;
}

.company-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.company-profile-copy {
  max-width: 900px;
}

.company-identity {
  display: grid;
  gap: 12px;
}

.company-identity article {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 43, 74, 0.08);
}

.company-identity span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-identity strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.company-pillars {
  margin-top: 24px;
}

.department-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.department-contacts article {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(16, 43, 74, 0.04);
  border: 1px solid rgba(16, 43, 74, 0.12);
  border-radius: 8px;
}

.department-contacts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.department-contacts a {
  color: var(--navy);
  font-size: 16px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

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

.contact-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  align-content: center;
}

.contact-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-card.primary-contact {
  border-color: rgba(242, 196, 0, 0.7);
  box-shadow: 0 18px 45px rgba(242, 196, 0, 0.16);
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 58px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #1d1800;
  font-weight: 900;
}

.page-hero {
  padding: 92px clamp(20px, 6vw, 78px) 60px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 43, 74, 0.96), rgba(18, 56, 43, 0.78)),
    linear-gradient(135deg, #102b4a, #1f5a43);
}

.page-hero h1,
.page-hero p {
  max-width: 850px;
}

.page-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

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

.photo-strip figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.photo-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.04);
}

.photo-strip figcaption {
  padding: 14px 16px;
  color: var(--navy);
  font-weight: 800;
}

.footprint-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 196, 0, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfaf7, #f1f6ef);
}

.footprint-section.band {
  background:
    radial-gradient(circle at 14% 16%, rgba(242, 196, 0, 0.16), transparent 28%),
    linear-gradient(135deg, #102b4a, #12382b);
}

.footprint-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: stretch;
}

.footprint-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(16, 43, 74, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 90, 67, 0.12), rgba(242, 231, 216, 0.34)),
    radial-gradient(circle at 22% 28%, rgba(79, 150, 84, 0.28), transparent 20%),
    radial-gradient(circle at 62% 58%, rgba(117, 166, 99, 0.25), transparent 26%),
    linear-gradient(120deg, #e4f0d2 0%, #cfe5be 48%, #e6edd5 100%);
  box-shadow: var(--shadow);
}

.footprint-map::before,
.footprint-map::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.footprint-map::before {
  left: 56%;
  top: -12%;
  width: 42%;
  height: 130%;
  background: linear-gradient(100deg, rgba(16, 43, 74, 0.06), rgba(255, 255, 255, 0.24), rgba(16, 43, 74, 0.08));
  transform: rotate(8deg);
}

.footprint-map::after {
  left: 5%;
  right: 5%;
  top: 49%;
  height: 1px;
  background: rgba(16, 43, 74, 0.16);
}

.footprint-map.dark {
  border-color: rgba(255, 255, 255, 0.18);
}

.map-road {
  position: absolute;
  z-index: 1;
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(16, 43, 74, 0.08), 0 10px 24px rgba(16, 43, 74, 0.13);
}

.road-east {
  left: 18%;
  top: 52%;
  width: 66%;
  transform: rotate(-8deg);
}

.road-north {
  left: 22%;
  top: 18%;
  width: 36%;
  transform: rotate(17deg);
}

.road-south {
  left: 24%;
  top: 67%;
  width: 30%;
  transform: rotate(68deg);
}

.map-city,
.map-pin {
  position: absolute;
  z-index: 3;
  white-space: nowrap;
}

.map-city {
  color: rgba(16, 43, 74, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.quito {
  right: 9%;
  top: 43%;
}

.santo {
  left: 39%;
  top: 54%;
}

.concordia {
  left: 19%;
  top: 31%;
}

.map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(16, 43, 74, 0.22);
}

.map-pin.factory {
  background: #d94b3d;
}

.map-pin.plantation {
  min-height: 30px;
  padding: 7px 10px;
  background: var(--green-700);
}

.p1 {
  left: 18%;
  top: 27%;
}

.p2 {
  left: 22%;
  top: 37%;
}

.p3 {
  left: 26%;
  top: 78%;
}

.p4 {
  left: 31%;
  top: 67%;
}

.la-union {
  left: 9%;
  top: 19%;
}

.puerto-quito {
  left: 33%;
  top: 20%;
}

.footprint-stats {
  display: grid;
  gap: 14px;
}

.footprint-stats article {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.footprint-section.band .footprint-stats article {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.footprint-stats strong {
  color: var(--navy);
  font-size: 42px;
  line-height: 1;
}

.footprint-section.band .footprint-stats strong,
.footprint-section.band .footprint-stats span {
  color: var(--white);
}

.footprint-stats span {
  color: var(--muted);
  font-weight: 720;
}

.cta-band {
  background: var(--wood-100);
}

.cta-band p {
  color: var(--muted);
  max-width: 720px;
}

.portal-card {
  display: block;
}

.portal-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.site-footer {
  padding: 34px clamp(20px, 6vw, 78px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: var(--navy);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

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

  .language-switcher {
    margin-left: 0;
  }

  .hero {
    min-height: min(640px, calc(100svh - 86px));
  }

  .hero-carousel,
  .hero-slide {
    min-height: min(640px, calc(100svh - 86px));
  }

  .hero-slide {
    padding-top: 94px;
  }

  .hero-watermark {
    top: 116px;
    right: 18px;
    font-size: 42px;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: 42px;
  }

  .split,
  .company-profile,
  .department-contacts,
  .contact-grid,
  .feature-grid.three,
  .feature-grid.two,
  .news-grid,
  .timeline li,
  .photo-strip,
  .footprint-grid {
    grid-template-columns: 1fr;
  }

  .inline-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-news {
    grid-column: span 1;
  }

  .footprint-map {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    max-width: calc(100% - 88px);
  }

  .brand-logo {
    max-height: 62px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-title {
    font-size: 15px;
    letter-spacing: 0.06em;
  }

  .brand-domain {
    font-size: 10px;
  }

  .language-switcher {
    width: 100%;
  }

  .language-switcher button {
    flex: 1;
  }

  .hero {
    min-height: 680px;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 680px;
  }

  .hero-slide {
    padding: 96px 18px 112px;
  }

  .hero-controls {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .hero-controls button {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
  }

  .hero-controls button.active {
    width: 36px;
  }

  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .button {
    width: 100%;
  }
}
