/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #ffffff;
  --bg-2:       #f7f5f3;
  --bg-3:       #efebe7;
  --ink:        #15130f;
  --ink-soft:   rgba(21,19,15,0.75);
  --mute:       #6b6459;
  --line:       rgba(21,19,15,0.10);
  --line-strong: rgba(21,19,15,0.18);

  --accent:     #e21f26;
  --accent-2:   #b3151b;
  --accent-dim: rgba(226,31,38,0.10);
  --silver:     #55524d;

  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
  --gutter: 1.25rem;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--font-display); font-weight: 700; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding: 5rem 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .75rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 56ch; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out), border-color .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px rgba(226,31,38,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(226,31,38,0.5); }
.btn-ghost {
  border: 2px solid var(--ink); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.btn-wa svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }

/* =============================================================
   5. Header / Nav
   ============================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: background .3s var(--ease-out), padding .3s var(--ease-out), border-color .3s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
  box-shadow: 0 8px 24px rgba(21,19,15,0.06);
}

.header-top {
  background: var(--ink);
  font-family: var(--font-display); font-size: .74rem;
}
.header-top .container { display: flex; align-items: center; justify-content: flex-end; gap: 1.1rem; padding-top: .45rem; padding-bottom: .45rem; }
.header-top a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; opacity: .88; transition: opacity .25s var(--ease-out), color .25s var(--ease-out); }
.header-top a:hover { opacity: 1; color: var(--accent-2); }
.header-top svg { width: 15px; height: 15px; flex-shrink: 0; }
.header-top .top-text { display: none; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }
.brand img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 3px rgba(226,31,38,0.12), 0 0 18px rgba(226,31,38,0.25);
}
.brand-name { font-size: 1.05rem; }
.brand-name span { color: var(--accent-2); }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .92rem; color: var(--ink-soft); position: relative; padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent-2); transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-actions .btn { padding: .7rem 1.2rem; font-size: .88rem; }
.nav-toggle {
  display: flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 10px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(255,255,255,0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.4rem; }
.mobile-menu .btn { margin-top: 1rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; overflow: clip;
  min-height: 100svh; display: flex; align-items: center;
  padding: 7rem 0 4rem;
  background: var(--bg);
}
.hero-inner { max-width: 780px; }
.hero-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; font-family: var(--font-display); font-size: .8rem; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc6a; box-shadow: 0 0 8px #3ddc6a; }
.hero-title { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.02; margin-bottom: 1.4rem; }
.hero-title em { font-style: normal; color: var(--accent-2); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-badge { display: flex; flex-direction: column; gap: .2rem; }
.hero-badge b { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent-2); }
.hero-badge span { font-size: .8rem; color: var(--mute); }

/* =============================================================
   7. Productos
   ============================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cat-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.8rem 1.4rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), background .4s var(--ease-out);
}
.cat-card:hover { transform: translateY(-6px); border-color: rgba(226,31,38,0.4); background: var(--bg-3); }
.cat-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center; color: var(--accent-2);
}
.cat-icon svg { width: 28px; height: 28px; stroke: currentColor; }
.cat-name { font-size: 1.05rem; }
.cat-desc { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.cat-stock {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem;
  font-family: var(--font-display); color: #3ddc6a; text-transform: uppercase; letter-spacing: .06em;
}
.cat-stock .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc6a; box-shadow: 0 0 6px #3ddc6a; }
.cat-note { margin-top: 1.6rem; font-size: .85rem; color: var(--mute); max-width: 60ch; }
.section-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* =============================================================
   8. Servicio técnico
   ============================================================= */
.service-wrap { display: grid; gap: 2.5rem; }
.service-form {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
  padding: 1.8rem;
}
.service-intro { display: flex; flex-direction: column; gap: 1.2rem; }
.service-points { display: grid; gap: .9rem; margin-top: .5rem; }
.service-point { display: flex; gap: .8rem; align-items: flex-start; }
.service-point svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--accent-2); }
.service-point b { display: block; font-family: var(--font-body); font-weight: 600; }
.service-point span { color: var(--ink-soft); font-size: .92rem; }

.form-label { display: block; font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: .8rem; }
.check-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-bottom: 1.6rem; }
.check-item {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
  font-size: .9rem;
}
.check-item:hover { border-color: var(--line-strong); }
.check-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.check-item:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }

.field { margin-bottom: 1.4rem; }
.field textarea, .field select, .field input[type="text"] {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: .85rem 1rem; color: var(--ink); font-family: var(--font-body); font-size: .92rem; resize: vertical;
}
.field textarea:focus, .field select:focus, .field input:focus { outline: none; border-color: var(--accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.form-hint { font-size: .8rem; color: var(--mute); max-width: 42ch; }

/* =============================================================
   8b. Proceso de compra
   ============================================================= */
.steps-list { display: grid; gap: 1rem; }
.step-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.step-body b { display: block; margin-bottom: .2rem; }
.step-body span { color: var(--ink-soft); font-size: .9rem; }
.process-note {
  margin-top: 1.8rem; padding: 1rem 1.2rem; border: 1px dashed var(--line-strong); border-radius: 14px;
  font-size: .88rem; color: var(--ink-soft); max-width: 70ch;
}

/* =============================================================
   8c. Mayoreo
   ============================================================= */
.wholesale-card {
  display: flex; flex-direction: column; gap: 1.5rem;
  border: 1px solid var(--line); border-radius: 26px; padding: 2.6rem;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}
.wholesale-card p { color: var(--ink-soft); max-width: 62ch; }

/* =============================================================
   9. Confianza
   ============================================================= */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.trust-card { text-align: center; padding: 1.6rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.trust-value { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-2); margin-bottom: .4rem; }
.trust-label { font-size: .8rem; color: var(--mute); }

/* =============================================================
   10. Contacto final
   ============================================================= */
.cta-final {
  border-radius: 28px; padding: 3.5rem 2rem; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(226,31,38,0.22), transparent 60%), var(--bg-2);
  border: 1px solid var(--line);
}
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-final p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* =============================================================
   11. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 1.6rem; align-items: flex-start; }
.footer-top { display: flex; flex-direction: column; gap: 1rem; }
.footer-end { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); }
.footer-brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer-meta { color: var(--mute); font-size: .85rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }

.footer-contact { display: flex; flex-wrap: wrap; gap: .8rem; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .65rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out), background .25s var(--ease-out);
}
.footer-contact a:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-dim); }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-contact .is-wa { border-color: rgba(37,211,102,0.4); color: #1f9c53; }
.footer-contact .is-wa:hover { border-color: #25D366; background: rgba(37,211,102,0.08); }

/* =============================================================
   12. WhatsApp flotante
   ============================================================= */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: transform .3s var(--ease-bounce);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* =============================================================
   13. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .header-top .top-text { display: inline; }
  .wholesale-card { flex-direction: row; align-items: center; justify-content: space-between; }
  .wholesale-card .section-cta { margin-top: 0; }
}

@media (min-width: 720px) {
  .section { padding: 6.5rem 0; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .service-wrap { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-end { align-items: flex-end; }
}

@media (min-width: 1280px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
}

/* =============================================================
   14. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
}
