:root {
  --bg: #0b1f1a;
  --bg-2: #0f2a23;
  --bg-3: #143429;
  --line: rgba(220, 240, 228, 0.12);
  --text: #e8f0ea;
  --muted: #a6bdb1;
  --fern: #c6f36b;
  --river: #4cc9b0;
  --amber: #f6b44b;
  --radius: 20px;
  --wrap: 1180px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--fern); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--fern); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.9em 1.5em;
  border-radius: 999px;
  background: var(--fern);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--fern);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(198, 243, 107, 0.6); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--sm { padding: 0.55em 1.1em; font-size: 0.95rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 31, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: -0.03em; text-decoration: none;
}
.brand__mark { width: 32px; height: 32px; color: var(--fern); }

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) {
  text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.nav__menu a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 12px; flex-direction: column; justify-content: space-between;
}
.nav__toggle span:not(.sr) { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu li a:not(.btn) { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; justify-content: center; }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(76, 201, 176, 0.18), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(198, 243, 107, 0.10), transparent 70%),
    linear-gradient(180deg, #0a1c18 0%, var(--bg) 100%);
}
.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero__topo { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(76, 201, 176, 0.14); }
.hero__topo path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 4s ease forwards; }
.hero__topo path:nth-child(2n) { animation-delay: 0.3s; }
.hero__topo path:nth-child(3n) { animation-delay: 0.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__inner { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; color: var(--muted); background: rgba(15, 42, 35, 0.6);
  backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fern); box-shadow: 0 0 0 4px rgba(198, 243, 107, 0.18); }

.hero__title {
  margin: 28px 0 24px;
  font-size: clamp(3.2rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--fern) 10%, var(--river) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* el degradado solo pinta dentro de la caja; la "r" sobresale por el letter-spacing negativo */
  padding-right: 0.08em;
  margin-right: -0.08em;
}
.hero__lead { max-width: 600px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__coords {
  position: absolute; right: 24px; bottom: 28px;
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--font-display); font-weight: 500; font-size: 0.85rem;
  color: rgba(166, 189, 177, 0.6); letter-spacing: 0.08em;
}
@media (max-width: 600px) { .hero__coords { display: none; } }

/* Clientes */
.clientes { border-block: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 64px; overflow: hidden; }
.clientes__head { text-align: center; margin-bottom: 36px; }
.clientes__head .kicker { margin-bottom: 10px; }
.clientes__title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; }

.marquee {
  display: flex; overflow: hidden; gap: 16px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 16px; }
.marquee__track {
  display: flex; gap: 16px; flex-shrink: 0;
  animation: marquee 50s linear infinite;
}
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 16px)); } }

.logo {
  flex-shrink: 0; width: 176px; height: 96px; border-radius: 16px;
  background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 16px 22px;
}
.logo img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  filter: grayscale(1); opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo:hover img { filter: none; opacity: 1; }
.logo--dark { background: #000; }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask: none; mask: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; flex-shrink: 1; }
  .marquee__track[aria-hidden],
  .marquee .logo:nth-child(n + 10),
  .marquee--rev .logo:nth-child(n + 9) { display: none; }
}
@media (max-width: 600px) { .logo { width: 140px; height: 80px; } }

/* Sections */
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__lead { color: var(--muted); font-size: 1.12rem; margin-top: 18px; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 600;
  color: var(--fern); margin-bottom: 16px;
}

/* Sur */
.sur__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.sur__text h2 { margin-bottom: 28px; }
.sur__text p:not(.kicker) { color: var(--muted); font-size: 1.1rem; }
.sur__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; min-height: 170px;
}
.fact__num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.fact__plus { color: var(--fern); }
.fact__label { color: var(--muted); font-size: 0.95rem; }
.fact--rain { background: linear-gradient(160deg, rgba(76, 201, 176, 0.22), rgba(76, 201, 176, 0.04)); }
.fact--rain svg { width: 44px; height: 44px; color: var(--river); margin-bottom: auto; }
.fact--rain .fact__label { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .sur__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sur__facts { grid-template-columns: 1fr; } .fact { min-height: 0; } }

/* Servicios */
.servicios { background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { grid-column: span 2; }
.card:nth-child(n + 4) { grid-column: span 3; }
.card {
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(198, 243, 107, 0.35); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(198, 243, 107, 0.1); color: var(--fern); margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(n + 4) { grid-column: auto; }
  .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Productos */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product {
  --accent: var(--fern);
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 48px); border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 28px;
}
.product::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  right: -140px; top: -160px; background: var(--accent); opacity: 0.16; filter: blur(60px);
  transition: opacity 0.4s ease;
}
.product:hover::before { opacity: 0.28; }
.product--prevn { --accent: var(--amber); }
.product--azemi { --accent: var(--river); }
.product > * { position: relative; }
.product__tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.product__name { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; margin: 18px 0 12px; letter-spacing: -0.04em; }
.product__claim { font-size: 1.15rem; color: var(--text); max-width: 420px; margin: 0; }
.product__list { display: grid; gap: 12px; }
.product__list li { position: relative; padding-left: 28px; color: var(--muted); }
.product__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.product__link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--accent);
  padding-bottom: 2px; border-bottom: 1px solid currentColor;
}
.product__link span { transition: transform 0.2s; }
.product__link:hover span { transform: translate(3px, -3px); }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

/* Proceso */
.proceso { background: var(--bg-2); }
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }

.river { position: absolute; pointer-events: none; overflow: visible; }
.river--h { left: 0; width: 100%; top: -26px; height: 100px; }
.river--v { display: none; }
.river path { fill: none; stroke-linecap: round; }
.river__bank { stroke: rgba(76, 201, 176, 0.35); stroke-width: 26; }
.river .river__trees path { fill: rgba(198, 243, 107, 0.4); }
.river__water { stroke-width: 11; opacity: 0.8; }
.river__shine { stroke: rgba(232, 255, 245, 0.28); stroke-width: 3.5; }
.river__flow {
  stroke: rgba(240, 255, 250, 0.75); stroke-width: 1.6;
  stroke-dasharray: 10 46; animation: river-flow 3.5s linear infinite;
}
.river__flow--slow {
  stroke: rgba(198, 243, 107, 0.6); stroke-width: 1.2;
  stroke-dasharray: 4 70; stroke-dashoffset: 30; animation-duration: 6s;
}
@keyframes river-flow { to { stroke-dashoffset: -168; } }
.river__flow--slow { animation-name: river-flow-slow; }
@keyframes river-flow-slow { from { stroke-dashoffset: 30; } to { stroke-dashoffset: -192; } }

.step { padding-right: 28px; position: relative; }
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(198, 243, 107, 0.35);
  box-shadow: 0 0 0 6px var(--bg-2);
  font-family: var(--font-display); font-weight: 700; color: var(--fern); margin-bottom: 44px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .river--h { display: none; }
  .river--v { display: block; left: 0; top: 0; width: 48px; height: 100%; }
  .step { padding-left: 76px; padding-right: 0; }
  .step__n { position: absolute; left: 0; top: -4px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .river__flow { animation: none; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.92rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--text); }
.footer .brand { color: var(--text); font-size: 1.15rem; }
.footer .brand__mark { width: 26px; height: 26px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__topo path { animation: none; stroke-dashoffset: 0; }
  .hero__rain { display: none; }
}
