:root {
  --ink: #101411;
  --night: #0b120e;
  --forest: #18291f;
  --moss: #687b54;
  --mineral: #7b9aa0;
  --brass: #b99b5f;
  --ivory: #f7f2e7;
  --stone: #d9ddcf;
  --muted: #9ea99a;
  --line: rgba(247, 242, 231, 0.16);
  --line-dark: rgba(16, 20, 17, 0.14);
  --shadow: 0 24px 70px rgba(4, 7, 5, 0.32);
  --radius: 6px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--brass) var(--night);
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

::selection {
  background: var(--brass);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--night);
}

::-webkit-scrollbar-thumb {
  background: var(--brass);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 18px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--brass);
  color: var(--night);
  font-weight: 700;
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  color: var(--ivory);
  transition: background 0.28s var(--ease), padding 0.28s var(--ease), border-color 0.28s var(--ease);
}

.site-header.is-scrolled {
  padding: 0.75rem 0;
  background: rgba(11, 18, 14, 0.92);
  border-bottom-color: rgba(247, 242, 231, 0.1);
  backdrop-filter: blur(10px);
}

.nav-shell,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid currentColor;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 650;
}

.brand-copy small {
  margin-top: 0.3rem;
  color: var(--stone);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.site-nav a,
.footer-links a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.38rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(247, 242, 231, 0.08);
  border: 1px solid rgba(247, 242, 231, 0.18);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ivory);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

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

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

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

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-content: end;
  padding: 8.5rem 0 1.6rem;
  overflow: hidden;
  color: var(--ivory);
  background: var(--night);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("https://infonegocios.com.py/images/resize/667275.webp?fm=webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(0.94) contrast(1.08) brightness(0.72);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 10, 0.88) 0%, rgba(8, 13, 10, 0.54) 48%, rgba(8, 13, 10, 0.36) 100%),
    linear-gradient(180deg, rgba(8, 13, 10, 0.22) 0%, rgba(8, 13, 10, 0.12) 54%, rgba(8, 13, 10, 0.72) 100%);
}

.hero-content,
.hero-footer {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
  padding-bottom: 4.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.modal-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 6.2rem;
}

.hero-lead {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: var(--stone);
  font-size: 1.2rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.btn::after {
  content: "↗";
  margin-left: 0.65rem;
  transition: transform 0.22s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--night);
}

.btn-secondary {
  border-color: rgba(247, 242, 231, 0.38);
  color: var(--ivory);
  background: rgba(247, 242, 231, 0.04);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--brass);
  color: var(--brass);
}

.hero-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(247, 242, 231, 0.22);
  border-bottom: 1px solid rgba(247, 242, 231, 0.14);
}

.hero-fact {
  min-height: 110px;
  padding: 1.15rem 1.2rem;
  border-right: 1px solid rgba(247, 242, 231, 0.14);
}

.hero-fact:last-child {
  border-right: 0;
}

.hero-fact span,
.proof-grid span,
.system-list span,
.crop-card span,
.source-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-fact strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--ivory);
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-fact strong [data-count] {
  color: inherit;
  font: inherit;
}

.section {
  padding: 7rem 0;
}

.section h2 {
  font-size: 3.6rem;
}

.section-title {
  max-width: 690px;
}

.section-title.narrow {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-title p,
.thesis-copy p,
.model-copy p,
.b2b-section p,
.contact-section p,
.modal-card p {
  color: #4f5c51;
  font-size: 1.05rem;
}

.section-title .eyebrow,
.modal-card .eyebrow {
  color: var(--brass);
  font-size: 0.75rem;
}

.thesis-section,
.model-section,
.contact-section {
  background: var(--ivory);
}

.thesis-grid,
.system-layout,
.model-grid,
.b2b-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.system-layout {
  grid-template-columns: minmax(300px, 0.82fr) minmax(620px, 1.18fr);
}

.thesis-copy {
  max-width: 660px;
  padding-top: 0.5rem;
}

.proof-strip {
  padding: 0;
  background: var(--ink);
  color: var(--ivory);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid div {
  min-height: 180px;
  padding: 1.4rem;
  border-left: 1px solid rgba(247, 242, 231, 0.14);
}

.proof-grid div:last-child {
  border-right: 1px solid rgba(247, 242, 231, 0.14);
}

.proof-grid strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
}

.system-section,
.b2b-section,
.sources-section {
  background: var(--night);
  color: var(--ivory);
}

.system-section .section-title p,
.b2b-section .section-title p,
.sources-section .section-title p {
  color: var(--stone);
}

.system-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.system-list article {
  display: grid;
  grid-template-columns: 54px minmax(220px, 0.72fr) minmax(280px, 1fr);
  gap: 2rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.system-list h3,
.crop-card h3,
.source-card strong {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.25;
}

.system-list p,
.crop-card p,
.b2b-points span {
  margin: 0.45rem 0 0;
  color: var(--stone);
}

.system-list p {
  margin: 0;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.7;
}

.image-break {
  position: relative;
  min-height: 56svh;
  overflow: hidden;
  background: var(--forest);
}

.image-break img {
  width: 100%;
  height: 56svh;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.04);
}

.image-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 10, 0.38);
}

.image-break-copy {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 2rem;
  z-index: 1;
  max-width: 540px;
  color: var(--ivory);
}

.image-break-copy span {
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.image-break-copy strong {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1.08;
}

.crop-section {
  background: #eef1e7;
}

.crop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.crop-card {
  min-height: 260px;
  padding: 1.4rem;
  background: #f7f2e7;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}

.crop-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
}

.crop-card span {
  color: var(--moss);
  margin-bottom: 1rem;
}

.crop-card p {
  color: #526052;
}

.b2b-layout {
  align-items: center;
}

.b2b-points {
  display: grid;
  gap: 1px;
  background: rgba(247, 242, 231, 0.14);
  border: 1px solid rgba(247, 242, 231, 0.14);
}

.b2b-points div {
  padding: 1.25rem;
  background: var(--night);
}

.b2b-points strong {
  display: block;
  color: var(--brass);
}

.sources-section {
  border-top: 1px solid rgba(247, 242, 231, 0.1);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(247, 242, 231, 0.14);
  border: 1px solid rgba(247, 242, 231, 0.14);
}

.source-card {
  min-height: 170px;
  padding: 1.3rem;
  background: var(--night);
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.source-card:hover,
.source-card:focus-visible {
  background: var(--ivory);
  color: var(--ink);
}

.source-card span {
  margin-bottom: 0.8rem;
  color: var(--mineral);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line-dark);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(16, 20, 17, 0.08);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #f8f8f3;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brass);
  outline: 0;
  background: #ffffff;
}

.form-note {
  margin: 0;
  color: #596457;
  font-size: 0.9rem;
}

.form-note.is-success {
  color: #23663f;
}

.site-footer {
  padding: 2rem 0 3rem;
  background: var(--night);
  color: var(--ivory);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 4, 0.72);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 2rem;
  background: var(--ivory);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
}

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: #23663f;
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s var(--ease);
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: translateY(-2px);
}

.whatsapp-fab span {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.whatsapp-fab svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1060px) {
  .hero h1 {
    font-size: 4.8rem;
  }

  .thesis-grid,
  .system-layout,
  .model-grid,
  .b2b-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .system-list article {
    grid-template-columns: 48px minmax(0, 0.85fr) minmax(260px, 1fr);
    gap: 1.25rem;
  }

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

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 24px;
    width: min(280px, calc(100vw - 48px));
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(11, 18, 14, 0.96);
    border: 1px solid rgba(247, 242, 231, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 90svh;
    padding-top: 7rem;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .hero-footer,
  .proof-grid,
  .crop-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .hero-fact {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 242, 231, 0.14);
  }

  .section {
    padding: 5rem 0;
  }

  .section h2 {
    font-size: 2.55rem;
  }

  .system-list article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.85rem 1rem;
  }

  .system-list p {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .footer-grid,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-fab span {
    display: none;
  }
}
