/* =========================================
   NYDRAX — LANDING PAGE
   Tokens, base, layout, scroll-linked motion
   ========================================= */

:root {
  --green: #85C603;
  --lime: #B6FF1A;
  --black: #050705;
  --graphite: #151915;
  --white: #F4F6F2;
  --muted: #AEB6AA;
  --line: rgba(133, 198, 3, 0.25);

  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', Arial, sans-serif;

  --max-width: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -10;

  background:
    radial-gradient(circle at 20% 20%, rgba(133, 198, 3, 0.06), transparent 22%),
    radial-gradient(circle at 80% 65%, rgba(182, 255, 26, 0.04), transparent 25%);

  animation: ambient 18s ease-in-out infinite alternate;
}

@keyframes ambient {
  from { transform: translate(-1%, -1%) scale(1); }
  to   { transform: translate(1%, 1%) scale(1.06); }
}

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

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

button, input, textarea {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: auto;
}

/* =========================================
   PROGRESS
   ========================================= */

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime), 0 0 20px rgba(182, 255, 26, 0.5);
  z-index: 9999;
}

/* =========================================
   NAVBAR
   ========================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: rgba(5, 7, 5, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(133, 198, 3, 0.18);
}

.nav-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-isotipo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-wordmark {
  width: 118px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 246, 242, 0.78);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--lime);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;

  border: 1px solid var(--green);
  color: var(--white);

  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  position: relative;
  overflow: hidden;

  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.button:hover {
  background: var(--green);
  color: #071006;
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: #071006;
}

.button.primary:hover {
  background: var(--lime);
  border-color: var(--lime);
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-150%);
  transition: transform 0.55s;
}

.button:hover::after {
  transform: translateX(150%);
}

/* =========================================
   HERO
   ========================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;

  background:
    radial-gradient(circle at 74% 45%, rgba(133, 198, 3, 0.18), transparent 30%),
    linear-gradient(120deg, rgba(133, 198, 3, 0.05) 1px, transparent 1px);

  background-size: auto, 75px 75px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 60px;
  padding: 70px 0;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 5;
  transition: transform 0.15s ease-out;
}

.eyebrow {
  color: var(--green);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 28px;
  max-width: 760px;

  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(58px, 7.5vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--green);
}

.hero-description {
  max-width: 600px;
  margin: 0 0 32px;
  color: #D5DAD2;
  font-size: 17px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================
   HERO ISOTIPO
   ========================================= */

.hero-brand {
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;

  background: radial-gradient(circle, rgba(182, 255, 26, 0.18), rgba(133, 198, 3, 0.05) 40%, transparent 68%);
  filter: blur(20px);
  animation: glow 4.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.hero-isotipo {
  width: min(430px, 78%);
  position: relative;
  z-index: 2;
  object-fit: contain;

  filter: drop-shadow(0 0 24px rgba(133, 198, 3, 0.32));
  animation: floating 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.created {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);

  color: var(--lime);
  white-space: nowrap;

  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);

  width: 22px;
  height: 36px;
  border: 1px solid rgba(244, 246, 242, 0.3);
  border-radius: 12px;
  z-index: 4;
}

.hero-scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--lime);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* =========================================
   MARQUEE
   ========================================= */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #090D09;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 34px;
  white-space: nowrap;

  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================
   SECCIONES
   ========================================= */

.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;

  background: repeating-linear-gradient(
    115deg,
    transparent 0 74px,
    rgba(133, 198, 3, 0.09) 75px,
    transparent 76px 150px
  );

  background-size: 220% 100%;
  animation: backgroundMove 28s linear infinite;
}

@keyframes backgroundMove {
  to { background-position: 600px 0; }
}

.section .container {
  position: relative;
  z-index: 2;
}

.section-title {
  margin: 10px 0 20px;

  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  text-transform: uppercase;
}

.section-title .accent {
  color: var(--green);
}

.section-description {
  max-width: 570px;
  color: var(--muted);
  line-height: 1.7;
}

.green-line {
  width: 70px;
  height: 3px;
  margin: 22px 0 30px;
  background: var(--green);
}

/* =========================================
   VALORES
   ========================================= */

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  border: 1px solid rgba(133, 198, 3, 0.15);
  background: linear-gradient(180deg, #111611, #0B0E0B);
  perspective: 1200px;
}

.value {
  min-height: 175px;
  padding: 28px;
  border-right: 1px solid rgba(244, 246, 242, 0.08);
}

.value:last-child {
  border-right: none;
}

.value:hover {
  transform: translateY(-5px);
  background: rgba(133, 198, 3, 0.05);
}

.value-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;

  border: 1px solid var(--green);
  color: var(--lime);
  font-family: var(--display);
  font-weight: 600;
}

.value h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.value p {
  margin: 0;
  color: #AEB6AA;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================
   PRODUCTOS
   ========================================= */

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

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

.product {
  min-height: 480px;
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border: 1px solid rgba(244, 246, 242, 0.1);
  background: var(--graphite);
  transform-style: preserve-3d;
}

.product:hover {
  transform: translateY(-7px);
  border-color: rgba(133, 198, 3, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s var(--ease);
}

.product:hover .product-photo {
  transform: scale(1.045);
}

.product-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 4, 3, 0.94) 0%, rgba(3, 4, 3, 0.55) 38%, transparent 62%);
}

.product-body {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.product h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.08;
  text-transform: uppercase;
}

.product-copy {
  margin: 0 0 16px;
  max-width: 40ch;
  color: #D5DAD2;
  font-size: 14px;
  line-height: 1.6;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 5px 8px;
  background: var(--green);
  color: #071006;

  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* =========================================
   MARCA
   ========================================= */

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

.brand-showcase {
  min-height: 480px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(133, 198, 3, 0.18);
  background: linear-gradient(135deg, #101510, #080A08);
  perspective: 1000px;
}

.brand-showcase::before {
  content: "";
  position: absolute;
  inset: 0;

  background: repeating-linear-gradient(
    120deg,
    transparent 0 100px,
    rgba(133, 198, 3, 0.05) 101px,
    transparent 102px 200px
  );

  animation: backgroundMove 20s linear infinite;
}

.brand-showcase img {
  width: min(340px, 68%);
  position: relative;
  z-index: 2;

  filter: drop-shadow(0 0 28px rgba(133, 198, 3, 0.2));
  will-change: transform;
}

/* =========================================
   DISTRIBUIDORES
   ========================================= */

.map {
  min-height: 440px;
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(133, 198, 3, 0.18);
  background:
    radial-gradient(circle at center, rgba(133, 198, 3, 0.09), transparent 48%),
    #0B0E0B;
}

.map::before {
  content: "ARGENTINA";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;

  color: rgba(244, 246, 242, 0.035);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(55px, 8vw, 110px);
  transform: rotate(-22deg);
}

.map::after {
  content: "";
  position: absolute;
  inset: -30%;

  background: linear-gradient(110deg, transparent 40%, rgba(133, 198, 3, 0.09) 50%, transparent 60%);
  animation: scanner 7s ease-in-out infinite;
}

@keyframes scanner {
  from { transform: translateX(-60%) rotate(-8deg); }
  to   { transform: translateX(60%) rotate(-8deg); }
}

.pin {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 5;
  border-radius: 50%;

  background: var(--lime);
  box-shadow: 0 0 20px rgba(182, 255, 26, 0.8);

  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.map.is-visible .pin {
  opacity: 1;
  transform: scale(1);
  animation: pin 2.4s ease-in-out calc(var(--d, 0) * 90ms + 0.5s) infinite;
}

@keyframes pin {
  50% {
    box-shadow: 0 0 0 12px rgba(182, 255, 26, 0), 0 0 30px rgba(182, 255, 26, 0.8);
  }
}

.p1 { left: 48%; top: 18%; }
.p2 { left: 60%; top: 29%; }
.p3 { left: 38%; top: 36%; }
.p4 { left: 63%; top: 47%; }
.p5 { left: 46%; top: 55%; }
.p6 { left: 55%; top: 67%; }

/* =========================================
   MAYORISTAS
   ========================================= */

.wholesale {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #071007, #111B0D);
}

.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.wholesale-logo {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.wholesale-logo img {
  width: min(300px, 70%);
  animation: floating 5s ease-in-out infinite;
}

/* =========================================
   CONTACTO
   ========================================= */

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  width: 100%;
  padding: 15px;
  outline: none;

  border: 1px solid rgba(244, 246, 242, 0.12);
  background: #0D110D;
  color: var(--white);
}

.field:focus-visible {
  border-color: var(--green);
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.full {
  grid-column: 1 / -1;
}

textarea.field {
  min-height: 140px;
  resize: vertical;
}

select.field {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;

  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) center,
    calc(100% - 17px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

select.field option {
  background: var(--graphite);
  color: var(--white);
}

select.field:invalid {
  color: var(--muted);
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  padding: 45px 0 30px;
  border-top: 1px solid rgba(133, 198, 3, 0.2);
  background: #030403;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.footer-brand img:first-child {
  width: 38px;
}

.footer-brand img:last-child {
  width: 140px;
}

footer p {
  color: #8E968C;
  font-size: 13px;
}

/* =========================================
   FOCUS VISIBLE (global)
   ========================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* =========================================
   SCROLL-LINKED MOTION
   Progress is written to --p (0 → 1) by main.js
   as each element travels through the viewport.
   ========================================= */

[data-scroll] {
  --p: 0;
}

.section-title {
  clip-path: inset(0 0 calc((1 - var(--p, 1)) * 100%) 0);
  transition: clip-path 0.05s linear;
}

.fx-fade {
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 34px));
  transition: opacity 0.05s linear;
}

.fx-fade .section-title {
  transform: translateY(calc((1 - var(--p)) * 14px));
  transition: clip-path 0.05s linear, transform 0.05s linear;
}

.value {
  opacity: var(--p);
  transform:
    perspective(900px)
    rotateX(calc((1 - var(--p)) * 35deg))
    translateY(calc((1 - var(--p)) * 26px));
  transform-origin: 50% 100%;
  transition: opacity 0.05s linear, transform 0.15s ease-out, background 0.3s;
}

.product {
  clip-path: inset(calc((1 - var(--p)) * 6%) round 0px);
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 40px)) scale(calc(0.97 + var(--p) * 0.03));
  transition:
    opacity 0.05s linear,
    clip-path 0.05s linear,
    transform 0.15s ease-out,
    border-color 0.25s,
    box-shadow 0.25s;
}

.map {
  opacity: calc(0.4 + var(--p) * 0.6);
  transform: scale(calc(0.96 + var(--p) * 0.04));
  transition: opacity 0.05s linear, transform 0.05s linear;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 950px) {

  .nav-links { display: none; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons { justify-content: center; }

  .hero-brand { min-height: 400px; }

  .values { grid-template-columns: 1fr 1fr; }

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

  .product { min-height: 400px; }

  .split,
  .wholesale-grid,
  .contact {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .container {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .navbar .button { display: none; }

  .hero { padding-top: 80px; }

  .hero-grid { padding-top: 45px; }

  .hero h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .hero-brand { min-height: 320px; }

  .hero-isotipo { width: 78%; }

  .hero-scroll-cue { display: none; }

  .created {
    bottom: 5px;
    font-size: 9px;
  }

  .values,
  .products {
    grid-template-columns: 1fr;
  }

  .value {
    border-right: none;
    border-bottom: 1px solid rgba(244, 246, 242, 0.08);
  }

  .products-header { display: block; }

  .form { grid-template-columns: 1fr; }

  .full { grid-column: auto; }

  .section { padding: 75px 0; }

}

@media (prefers-reduced-motion: reduce) {

  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-scroll],
  .section-title,
  .reveal-title .section-title,
  .value[data-scroll],
  .product[data-scroll],
  .map[data-scroll] {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
  }

}
