:root {
  /* Blended palette from design references: rich gold/ochre + fresh modern blue + dark sophisticated base */
  --bg-deep: #0b1114;
  --bg-mid: #121a20;
  --bg-card: rgba(18, 26, 34, 0.78);
  --bg-card-hover: rgba(24, 34, 44, 0.9);
  --gold: #d7a542;
  --gold-bright: #e8b96b;
  --gold-dim: #946425;
  --wheat: #e8c070;
  --green: #2f5a4a;
  --green-bright: #4a8a6a;
  --cream: #f4efe4;
  --text: #f0ebe0;
  --text-muted: #9aab9e;
  --text-dim: #6b7d72;
  --blue: #2296d2;
  --blue-light: #71bde9;
  --blue-pale: #c5d6e0;
  --stg: #d7a542;
  --stg-glow: rgba(215, 165, 66, 0.28);
  --prod: #2296d2;
  --prod-glow: rgba(34, 150, 210, 0.22);
  --reportes: #2296d2;
  --aceptacion: #5b9aae;
  --cereales: #d7a542;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Ambient background ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(215, 165, 66, 0.13), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(34, 150, 210, 0.10), transparent),
    radial-gradient(ellipse 40% 35% at 10% 60%, rgba(113, 189, 233, 0.07), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, #0a1116 40%, var(--bg-mid) 100%);
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 18s ease-in-out infinite;
}

.ambient__orb--1 {
  width: 420px; height: 420px;
  background: rgba(215, 165, 66, 0.07);
  top: -120px; left: 20%;
  animation-delay: 0s;
}

.ambient__orb--2 {
  width: 300px; height: 300px;
  background: rgba(34, 150, 210, 0.09);
  top: 40%; right: -80px;
  animation-delay: -6s;
}

.ambient__orb--3 {
  width: 250px; height: 250px;
  background: rgba(113, 189, 233, 0.06);
  bottom: 10%; left: -60px;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

/* ── Layout shell ── */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.nav__logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  /* clean display for the provided real logo */
}

.nav__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.nav__title span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 1px;
}

.nav__links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
}

.nav__links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
}

/* ── Hero: full agricultural landscape as background (sky + field + wheat) */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    min-height: 520px;
    padding: 4rem 0 4.5rem;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.45rem 1rem;
  border: 1px solid rgba(215, 165, 66, 0.25);
  border-radius: 999px;
  background: rgba(215, 165, 66, 0.06);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-bright);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: fadeUp 0.8s 0.1s ease both;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero__headline em {
  font-style: italic;
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(240, 201, 107, 0.25);
}

.hero__sub {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42ch;
  animation: fadeUp 0.8s 0.2s ease both;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--bg-deep);
  box-shadow: 0 8px 32px rgba(215, 165, 66, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(215, 165, 66, 0.4);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Background landscape (wheat / field / sky) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim for text legibility over the agricultural scene */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(11, 17, 20, 0.82) 0%,
    rgba(11, 17, 20, 0.55) 30%,
    rgba(11, 17, 20, 0.30) 52%,
    rgba(11, 17, 20, 0.10) 75%
  );
}

/* Content overlaid on the real wheat background */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (min-width: 1024px) {
  .hero__content {
    padding-left: 3rem;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section headers ── */
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head__desc {
  margin-top: 0.75rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Products grid ── */
.products {
  padding: 2rem 0 5rem;
}

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

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

.product-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
  opacity: 0;
  transform: translateY(32px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.12);
}

.product-card__glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.35s;
}

.product-card:hover .product-card__glow { opacity: 0.8; }

.product-card--reportes .product-card__glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 150, 210, 0.22), transparent 70%);
}
.product-card--aceptacion .product-card__glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(91, 154, 174, 0.20), transparent 70%);
}
.product-card--cereales .product-card__glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(215, 165, 66, 0.26), transparent 70%);
}

.product-card__art {
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: center;
  height: 140px;
}

.product-card__art svg {
  height: 120px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card__art svg {
  transform: scale(1.06) translateY(-4px);
}

.product-card__body {
  padding: 1.25rem 1.75rem 1.75rem;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.product-card--reportes .product-card__name { color: var(--reportes); }
.product-card--aceptacion .product-card__name { color: var(--aceptacion); }
.product-card--cereales .product-card__name { color: var(--cereales); }

.product-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* ── App entry buttons ── */
.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.app-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.app-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.app-btn__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-btn__action {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
}

.app-btn--prod {
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.05);
}

.app-btn--prod:hover {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.08);
}

.app-btn--prod .app-btn__label { color: var(--prod); }

.app-btn--pruebas {
  border-color: rgba(245, 158, 11, 0.15);
}

.app-btn--pruebas:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.06);
}

.app-btn--pruebas .app-btn__label { color: var(--stg); }

/* ── Quick access strip ── */
.quick-strip {
  padding: 2rem 0 2.5rem;
  margin: 0 -1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.quick-strip__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.quick-strip__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  text-align: center;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
}

.quick-pill:hover {
  background: rgba(215, 165, 66, 0.12);
  border-color: rgba(215, 165, 66, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quick-pill--prod {
  border-color: rgba(52, 211, 153, 0.2);
}

.quick-pill--prod:hover {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
}

.quick-pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}

.quick-pill__dot--stg { background: var(--stg); }
.quick-pill__dot--prod { background: var(--prod); }

/* Quick env groups for both Desarrollo + Producción side-by-side */
.quick-envs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .quick-envs { grid-template-columns: 1fr; gap: 1.75rem; }
}

.quick-env {
  text-align: center;
}

.quick-env__header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.quick-env__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quick-env__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.quick-env__dot--stg { background: var(--stg); }
.quick-env__dot--prod { background: var(--prod); }

.quick-pill--stg {
  border-color: rgba(245, 158, 11, 0.25);
}
.quick-pill--stg:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
}

.quick-strip__hint {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  opacity: 0.8;
}

/* ── Footer ── */
.footer {
  padding: 3rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand svg { width: 36px; height: 36px; opacity: 0.7; }

.footer__text {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer__text strong {
  color: var(--text-muted);
  font-weight: 600;
}

.footer__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── SVG animations ── */
.wheat-stalk { transform-origin: bottom center; }
.wheat-stalk--1 { animation: sway 4s ease-in-out infinite; }
.wheat-stalk--2 { animation: sway 4.5s ease-in-out infinite 0.5s; }
.wheat-stalk--3 { animation: sway 3.8s ease-in-out infinite 1s; }
.wheat-stalk--4 { animation: sway 4.2s ease-in-out infinite 1.5s; }
.wheat-stalk--5 { animation: sway 3.5s ease-in-out infinite 0.8s; }

@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2deg); }
}

.sun-glow { animation: sunPulse 6s ease-in-out infinite; }

@keyframes sunPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

.cloud { animation: drift 25s linear infinite; }
.cloud--2 { animation: drift 30s linear infinite reverse; animation-delay: -10s; }

@keyframes drift {
  from { transform: translateX(-20px); }
  to { transform: translateX(20px); }
}

.particle {
  animation: rise 8s ease-in-out infinite;
}

@keyframes rise {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-12px); opacity: 0.7; }
}
/* Disabled env (not deployed) */
.app-btn--disabled,
.app-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
