/* =========================================================
   GST 3D | BLACK EDITION — estilos
   Mobile first. Sin dependencias externas.
   ========================================================= */

:root {
  --bg: #000000;
  --bg-elev: #0b0b0b;
  --bg-panel: #121212;
  --line: #262626;
  --line-strong: #3a3a3a;
  --text: #f4f4f4;
  --text-muted: #a9a9a9;
  --text-dim: #6f6f6f;
  --accent: #ffffff;           /* acento principal: blanco puro sobre negro */
  --accent-ink: #000000;
  --wa: #25d366;               /* verde oficial de WhatsApp */
  --wa-ink: #04170b;
  --focus: #ffd43b;

  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --radius: 4px;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

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

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

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--gutter);
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px;
  font-weight: 700;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 800;
  text-transform: uppercase;
}

.section__lead {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .9rem;
  max-width: 70ch;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 22px; height: 22px; flex: none; }

.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: #e2e2e2; border-color: #e2e2e2; }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }

.btn--whatsapp { background: var(--wa); color: var(--wa-ink); border-color: var(--wa); }
.btn--whatsapp:hover { background: #2ee374; border-color: #2ee374; }

.btn--small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn--large { min-height: 54px; padding: 14px 26px; font-size: 1.02rem; }
.btn--xl { min-height: 60px; padding: 16px 28px; font-size: 1.1rem; width: 100%; }

.btn[aria-disabled="true"] { opacity: .75; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand__wordmark {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  font-size: 1rem; white-space: nowrap;
}
.brand__sep { color: var(--text-dim); font-weight: 400; }
.brand__edition { color: var(--text-muted); font-weight: 600; font-size: .85em; letter-spacing: .12em; }
.brand__logo {
  height: 48px; width: auto;
  background: #fff; padding: 3px; border-radius: 3px; margin-right: 12px;
  flex: none;
}
.brand { gap: 0; }
.brand__wordmark { font-size: .9rem; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; background: var(--text); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 20px;
}
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; display: flex; flex-direction: column; }
.site-nav__list a {
  display: block; padding: 14px 4px;
  text-decoration: none; font-weight: 600; font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.site-nav .btn { margin-top: 16px; width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 28px;
    position: static; background: transparent; border: 0; padding: 0;
  }
  .site-nav__list { flex-direction: row; gap: 26px; }
  .site-nav__list a { padding: 8px 0; border: 0; font-size: .95rem; color: var(--text-muted); }
  .site-nav__list a:hover { color: var(--text); }
  .site-nav .btn { margin: 0; width: auto; }
  .brand__wordmark { font-size: 1.05rem; }
  .brand__logo { height: 52px; padding: 4px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 56px;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(255,255,255,.06), transparent 70%),
    linear-gradient(180deg, #0d0d0d 0%, #000 100%);
}
.hero__grid { display: grid; gap: 36px; }
.hero__title {
  font-size: clamp(2.4rem, 10vw, 6rem);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 900;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 4px;
}
.hero__line--accent { color: var(--text-muted); }
.hero__lead { margin-top: 24px; max-width: 58ch; color: var(--text-muted); font-size: 1.08rem; }
.hero__actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.hero__actions .btn { width: 100%; }
.hero__tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 36px;
}
.hero__tags li {
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text-muted);
}
.hero__figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  overflow: hidden;
}
.hero__figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__figure figcaption {
  padding: 10px 14px;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { width: auto; }
}
@media (min-width: 900px) {
  .hero { padding: 96px 0 96px; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .hero__title { font-size: clamp(3.6rem, 6.4vw, 6rem); }
  .hero__figure { max-width: 540px; justify-self: end; }
  .hero__figure img { aspect-ratio: 1 / 1; }
}

/* ---------- Secciones ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section__head { max-width: 760px; }
@media (min-width: 900px) { .section { padding: 112px 0; } }

/* Fábrica */
.feature-list {
  list-style: none;
  margin-top: 40px;
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-list li { background: var(--bg); padding: 24px 20px; }
.feature-list h3 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.feature-list p { color: var(--text-muted); font-size: .97rem; }
@media (min-width: 760px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }

/* Filamentos */
.products {
  margin-top: 40px;
  display: grid; gap: 14px;
}
.product {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: border-color .2s var(--ease);
}
.product:hover { border-color: var(--line-strong); }
.product__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-panel); border-bottom: 1px solid var(--line); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 22px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.product__title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.product__desc { margin-top: 10px; color: var(--text-muted); font-size: .97rem; }
.product__specs { list-style: none; margin-top: 16px; display: grid; gap: 6px; font-size: .9rem; }
.product__specs li { padding-left: 16px; position: relative; color: var(--text); }
.product__specs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 2px; background: var(--text-muted); }
.product__cta {
  margin-top: auto; padding-top: 20px;
  font-weight: 700; text-decoration: none; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
}
.product__cta::after { content: "→"; transition: transform .2s var(--ease); }
.product__cta:hover::after { transform: translateX(4px); }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(4, 1fr); } }

/* Mayoristas */
.section--wholesale { background: var(--bg-elev); }
.wholesale-intro { display: grid; gap: 28px; }
.wholesale-intro__figure { margin: 0; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.wholesale-intro__figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.wholesale-intro__figure figcaption {
  padding: 10px 14px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim); border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .wholesale-intro { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .wholesale-intro .section__head { max-width: none; }
}
.audience { margin-top: 40px; display: grid; gap: 14px; }
.audience__card {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.audience__num {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--text-dim);
  margin-bottom: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.audience__card h3 { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.audience__card p { margin-top: 10px; color: var(--text-muted); font-size: .97rem; }
@media (min-width: 640px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .audience { grid-template-columns: repeat(4, 1fr); } }

.wholesale-cta {
  margin-top: 40px;
  padding: 28px 22px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; gap: 24px;
}
.wholesale-cta__title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.steps { margin-top: 16px; padding-left: 1.3em; display: grid; gap: 8px; max-width: 60ch; }
.steps li { padding-left: 4px; }
.wholesale-cta .btn--whatsapp { width: 100%; }
@media (min-width: 900px) {
  .wholesale-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px; }
  .wholesale-cta .btn--whatsapp { width: auto; flex: none; }
}

/* Contacto */
.contact { display: grid; gap: 40px; }
.contact__hint { margin-top: 12px; font-size: .88rem; color: var(--text-dim); min-height: 1.2em; }
.contact__hint:empty { display: none; }
.contact__address { margin-top: 28px; font-style: normal; color: var(--text-muted); line-height: 1.7; }
.contact__intro .btn--xl { margin-top: 28px; }

.contact__form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 26px 20px 28px;
  display: grid; gap: 16px;
}
.contact__form-title { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.contact__form-hint { color: var(--text-muted); font-size: .92rem; margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: .85rem; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.field input[type="text"], .field select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text);
}
.field input::placeholder { color: var(--text-dim); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field--checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.field--checks legend { padding: 0; margin-bottom: 8px; }
.field--checks label {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text); font-size: .95rem; font-weight: 500; cursor: pointer;
}
.field--checks input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.contact__submit { width: 100%; margin-top: 4px; }
.contact__form-note { font-size: .82rem; color: var(--text-dim); }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
  .contact__form { padding: 32px; }
  .contact__intro .btn--xl { width: auto; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 calc(32px + 72px); background: var(--bg); }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__logo { width: 120px; height: auto; background: #fff; padding: 8px; border-radius: 4px; margin-bottom: 16px; }
.site-footer__name { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.site-footer__tagline { margin-top: 6px; color: var(--text-muted); }
.site-footer__location { margin-top: 6px; color: var(--text-dim); font-size: .92rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__nav a { text-decoration: none; color: var(--text-muted); font-size: .95rem; padding: 6px 0; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__legal { color: var(--text-dim); font-size: .82rem; }
@media (min-width: 900px) {
  .site-footer { padding-bottom: 48px; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
}

/* ---------- WhatsApp flotante (solo celular) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wa); color: var(--wa-ink);
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.wa-float { transition: opacity .2s var(--ease), visibility .2s var(--ease); }
@media (min-width: 900px) { .wa-float { display: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%);
  z-index: 70; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: var(--radius);
  background: #1d1d1d; color: var(--text); border: 1px solid var(--line-strong);
  font-size: .92rem; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.toast[hidden] { display: none; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
