:root {
  --bg-main: #050505;
  --bg-secondary: #0d0d0d;
  --bg-card: rgba(255, 255, 255, 0.055);
  --merx-green: #00ff66;
  --merx-blue: #00c8ff;
  --merx-purple: #8b5cf6;
  --text-main: #ffffff;
  --text-muted: #a1a1a1;
  --border-soft: rgba(255, 255, 255, 0.12);
  --shadow-green: 0 0 35px rgba(0, 255, 102, 0.35);
  --shadow-blue: 0 0 35px rgba(0, 200, 255, 0.25);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.page-glow {
  position: fixed;
  top: -250px;
  right: -250px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,102,0.25), transparent 65%);
  z-index: -3;
  pointer-events: none;
}

.grid-background {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -4;
}

.section {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 110px 0;
}

.eyebrow {
  color: var(--merx-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  transition: 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--merx-green);
  color: #001807;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0, 255, 102, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid var(--border-soft);
}

.navbar {
  width: min(100% - 40px, var(--container));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  width: 120px;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.logo::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--merx-green);
  box-shadow: 0 0 18px var(--merx-green);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-links a:hover { 
  color: var(--merx-green); 
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.45);
  color: var(--merx-green);
  font-weight: 800;
  font-size: 0.88rem;
  transition: 0.25s ease;
}

.nav-cta:hover {
  background: var(--merx-green);
  color: #001807;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

/* HERO */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 760px;
  min-height: 760px;
  overflow: hidden;
  background: #000;
}

.fullscreen-carousel,
.fullscreen-slide {
  position: absolute;
  inset: 0;
}

.fullscreen-carousel {
  width: 100%;
  height: 100%;
}

.fullscreen-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
  cursor: pointer;
}

.fullscreen-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-slide > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.8s ease, opacity 0.8s ease;
  filter: contrast(1.08) saturate(1.12);
  background: #000;
}

.fullscreen-slide.active > img {
  transform: scale(1);
}

.fullscreen-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.74) 34%, rgba(0,0,0,.22) 62%, rgba(0,0,0,.60)),
    linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.10) 45%, rgba(0,0,0,.82)),
    radial-gradient(circle at 82% 18%, rgba(0,255,102,.20), transparent 34%);
}

.fullscreen-content {
  position: relative;
  z-index: 5;
  width: min(100% - 80px, var(--container));
  height: 100%;
  margin: 0 auto;
  padding-top: 135px;
  padding-bottom: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.fullscreen-content a,
.fullscreen-content button,
.product-floating-card {
  pointer-events: auto;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy h1 {
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  margin-bottom: 26px;
}

.hero-copy h1 span {
  display: block;
  color: var(--merx-green);
  text-shadow: 0 0 34px rgba(0,255,102,.65);
}

.hero-description {
  color: rgba(255,255,255,.72);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.product-floating-card {
  width: min(100%, 740px);
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(18, 28, 36, 0.84);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 36px rgba(0,0,0,.35), 0 0 32px rgba(0,255,102,.12);
}

.product-thumb {
  width: 92px;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  margin-bottom: 6px;
}

.product-info h3 {
  font-size: 1.55rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.product-info p {
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  line-height: 1.45;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 76px;
  padding: 0 24px;
  border-radius: 14px;
  background: #fff;
  color: #050505;
  font-weight: 900;
  transition: .25s ease;
}

.product-btn:hover {
  background: var(--merx-green);
  color: #001807;
  box-shadow: 0 0 28px rgba(0,255,102,.45);
  transform: translateY(-2px);
}

.fullscreen-dots {
  position: absolute;
  top: 118px;
  right: 54px;
  z-index: 10;
  display: flex;
  gap: 9px;
}

.fullscreen-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.36);
  cursor: pointer;
  transition: .25s ease;
}

.fullscreen-dots button.active {
  width: 32px;
  background: var(--merx-green);
  box-shadow: 0 0 20px rgba(0,255,102,.75);
}

/* CATEGORÍAS */
.categories {
  width: min(100% - 30px, 1850px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(360px, 1fr));
  gap: 32px;
}

.category-card {
  min-height: 500px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid var(--border-soft);
  transition: .25s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0,255,102,.24), transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,255,102,.45);
  box-shadow: var(--shadow-green);
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: .45s ease;
  filter: contrast(1.08) saturate(1.12);
}

.category-content {
  position: relative;
  z-index: 2;
  padding: 24px 28px 32px;
}

.category-card h3 {
  font-size: 1.42rem;
  margin-bottom: 14px;
}

.category-card p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.category-card a {
  color: var(--merx-green);
  font-weight: 800;
}

/* MAYORISTAS */
.wholesale-section {
  position: relative;
  width: 100%;
  min-height: 860px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 68%, rgba(0,255,102,.20), transparent 28%),
    radial-gradient(circle at 88% 15%, rgba(0,255,102,.12), transparent 30%),
    #050505;
}

.wholesale-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, black 0%, black 70%, transparent 100%);
  pointer-events: none;
}

.wholesale-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 80px, 1500px);
  min-height: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 40px;
}

.wholesale-content {
  max-width: 720px;
}

.wholesale-content .eyebrow {
  color: rgba(255,255,255,.72);
  margin-bottom: 22px;
}

.wholesale-content h2 {
  font-size: clamp(4rem, 6.5vw, 7.4rem);
  line-height: .92;
  letter-spacing: -0.08em;
  margin-bottom: 28px;
}

.wholesale-content h2 span {
  display: block;
  color: var(--merx-green);
  text-shadow: 0 0 28px rgba(0,255,102,.42);
}

.wholesale-content > p:not(.eyebrow) {
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 38px;
}

.wholesale-list {
  display: grid;
  gap: 16px;
  margin-bottom: 38px;
}

.wholesale-list div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 20px rgba(0,0,0,.20);
}

.wholesale-list strong {
  min-width: 42px;
  color: var(--merx-green);
  font-size: 1.7rem;
  font-weight: 900;
}

.wholesale-list span {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
}

.wholesale-btn {
  min-width: 290px;
  min-height: 64px;
  font-size: 1rem;
}

.wholesale-visual {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wholesale-visual::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 0;
  bottom: 12%;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,255,102,.34), rgba(0,255,102,.14) 40%, transparent 74%);
  filter: blur(22px);
  z-index: 0;
}

.wholesale-illustration {
  position: relative;
  z-index: 2;
  width: 205%;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: translateX(15%);
  filter: drop-shadow(0 0 24px rgba(0,255,102,.14)) drop-shadow(0 0 70px rgba(0,255,102,.10));
}

/* IMPORTACIÓN */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.045);
}

.step-card span {
  display: inline-block;
  color: var(--merx-green);
  font-weight: 900;
  margin-bottom: 30px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.step-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

/* CONTACTO */
.contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.contact-content h2 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
}

.contact-content p {
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-form {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.055);
  border: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  font-size: .9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,.35);
  color: var(--text-main);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--merx-green);
  box-shadow: 0 0 0 3px rgba(0,255,102,.12);
}

.form-button {
  grid-column: 1 / -1;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--merx-green);
  color: #001807;
  font-weight: 900;
  box-shadow: var(--shadow-green);
  transition: .25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
}

.footer {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.footer p {
  color: var(--text-muted);
}

.footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer a {
  color: var(--text-muted);
  font-weight: 600;
}

.footer a:hover {
  color: var(--merx-green);
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: .75s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.active {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(5,5,5,.96);
    border: 1px solid var(--border-soft);
  }

  .fullscreen-content {
    width: min(100% - 36px, var(--container));
    padding-top: 120px;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 11vw, 5.6rem);
  }

  .product-floating-card {
    width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wholesale-inner {
    width: min(100% - 36px, 1500px);
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 80px 0;
  }

  .wholesale-section {
    min-height: auto;
  }

  .wholesale-content h2 {
    font-size: clamp(3.4rem, 11vw, 5.8rem);
  }

  .wholesale-visual {
    min-height: auto;
    justify-content: center;
  }

  .wholesale-illustration {
    width: 100%;
    transform: none;
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 28px, var(--container));
    padding: 78px 0;
  }

  .navbar {
    width: min(100% - 28px, var(--container));
  }

  .hero-fullscreen {
    height: 820px;
    min-height: 820px;
  }

  .fullscreen-content {
    width: min(100% - 28px, var(--container));
    padding-top: 110px;
    padding-bottom: 24px;
  }

  .hero-copy h1 {
    font-size: 3.3rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .product-floating-card {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .product-thumb {
    width: 64px;
    height: 58px;
  }

  .product-info h3 {
    font-size: 1.15rem;
  }

  .product-info p {
    font-size: .82rem;
  }

  .product-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-width: auto;
    height: 52px;
  }

  .fullscreen-dots {
    top: 92px;
    right: 18px;
  }

  .category-grid,
  .steps-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
  }

  .category-image {
    height: 300px;
  }

  .wholesale-inner {
    width: min(100% - 28px, 1500px);
    padding: 70px 0;
  }

  .wholesale-content h2 {
    font-size: 3.3rem;
  }

  .wholesale-content > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .wholesale-list div {
    min-height: 72px;
    padding: 0 18px;
    border-radius: 20px;
  }

  .wholesale-list strong {
    min-width: 34px;
    font-size: 1.35rem;
  }

  .wholesale-list span {
    font-size: .98rem;
  }

  .wholesale-btn {
    width: 100%;
    min-width: auto;
  }

  .wholesale-illustration {
    width: 115%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}