/* =============================================================
   4 VISION PRO — styles.css
   Paleta derivada del logo real: navy profundo (#0b1720) + dorado
   metálico (#e3bd6c). Base: Glassmorphism, adaptado a modo oscuro.
   ============================================================= */

/* Cross-page transitions — native, zero JS cost, ignored gracefully where unsupported */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — derivada del logo real: navy profundo + dorado metálico */
  --bg:        #0b1720;
  --bg-2:      #101f2b;
  --bg-3:      #16283a;
  --paper:     #f7f2e3;
  --glass:     rgba(255, 255, 255, 0.05);
  --glass-2:   rgba(255, 255, 255, 0.028);
  --glass-line: rgba(227, 197, 124, 0.22);

  --ink:       #f3ecdb;
  --ink-soft:  #cdd6df;
  --ink-mute:  #8996a6;
  --cream:     #fbf6ea;

  --accent:      #e3bd6c;   /* dorado — CTAs, acentos, del logo */
  --accent-2:    #7c93ab;   /* azul-acero apagado — acento secundario */
  --accent-soft: rgba(227, 189, 108, 0.14);
  --accent-2-soft: rgba(124, 147, 171, 0.14);
  --gold-bright: #fbe7ab;
  --gold-deep:   #ad7f34;

  --line:      rgba(227, 197, 124, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 44px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", monospace;

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

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --nav-h: 76px;
}

@property --mesh-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}
::selection { background: var(--accent); color: #0b1720; }

: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(--bg); color: var(--accent);
  border: 1px solid var(--glass-line);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .9rem;
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 56ch; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensive: never let this combo hide content */
.reveal-group.is-visible .reveal-child { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  letter-spacing: -0.01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--accent) 55%, var(--gold-deep) 100%);
  color: #0b1720;
  box-shadow: 0 10px 26px rgba(227, 189, 108, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(227, 189, 108, 0.36); }
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--ink);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
@supports not (backdrop-filter: blur(1px)) {
  .btn-ghost { background: rgba(16,28,38,0.85); }
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline {
  background: transparent; border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Magnetic wrapper (JS adds .has-magnetic > .magnetic-inner) */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav-inner {
  width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav.is-scrolled {
  background: rgba(11, 23, 32, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink);
}
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--glass-line);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-full { display: flex; flex-direction: column; line-height: 1.1; }
.brand-sub { font-size: .62rem; font-weight: 500; letter-spacing: .08em; color: var(--ink-mute); text-transform: uppercase; }

.nav-links {
  display: none;
  align-items: center; gap: 2rem;
}
.nav-links a {
  position: relative; font-weight: 500; font-size: .93rem; color: var(--ink-soft);
  padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--ink); font-weight: 600; }

.nav-cta { display: none; }
.nav-burger {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
}
.nav-burger span { position: relative; width: 18px; height: 2px; background: var(--ink); display: block; }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav.is-open .nav-burger span { background: transparent; }
.nav.is-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 490;
  background: rgba(11, 23, 32, 0.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; padding: 2rem 1.5rem;
  gap: 1.4rem;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
}
.nav.is-open .nav-mobile { opacity: 1; visibility: visible; transform: none; }
.nav-mobile a { font-size: 1.4rem; font-family: var(--display); font-weight: 600; }
.nav-mobile .btn { align-self: flex-start; margin-top: .5rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 4rem;
  overflow: clip;
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: 0;
  background:
    radial-gradient(at 18% 24%, rgba(227,189,108,0.20) 0%, transparent 55%),
    radial-gradient(at 82% 12%, rgba(124,147,171,0.16) 0%, transparent 55%),
    radial-gradient(at 60% 82%, rgba(227,189,108,0.12) 0%, transparent 55%),
    var(--bg);
  filter: blur(60px) saturate(140%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.15) rotate(6deg); }
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 3rem;
  align-items: center;
}
.hero-content { max-width: 640px; }
.hero-title {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  margin-bottom: 1.2rem;
}
.hero-title em {
  font-style: normal; color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--accent); }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #16283a 0%, #0c1822 100%);
}
.hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s var(--ease-out);
}
.hero-visual img.is-loaded { opacity: 1; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(5,10,15,0) 40%, rgba(5,10,15,.72) 100%);
  pointer-events: none;
}
.img-fallback-icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(227,197,124,0.3);
}
.img-fallback-icon svg { width: 30%; height: 30%; }

.hero-visual-card {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem; z-index: 2;
  padding: 1rem 1.15rem; border-radius: var(--radius-md);
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  display: flex; align-items: center; gap: .9rem;
}
.hero-visual-card strong { display: block; font-size: 1.05rem; color: var(--ink); }
.hero-visual-card span { font-size: .78rem; color: var(--ink-mute); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* =============================================================
   7. Stats strip
   ============================================================= */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
}
.stat {
  padding: 1.5rem; border-radius: var(--radius-md);
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  text-align: left;
}
.stat-num {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--accent); display: block;
}
.stat-label { font-size: .85rem; color: var(--ink-mute); margin-top: .2rem; }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   8. Glass cards (categories, products, tools, features)
   ============================================================= */
.grid-cards {
  display: grid; gap: 1.3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.glass-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  isolation: isolate;
  overflow: hidden;
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-card { background: rgba(16,28,38,0.92); }
}
.glass-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(227,189,108,.14), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.glass-card:hover::before { opacity: 1; }

/* Category card */
.category-card { padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.category-card .cat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.category-card .cat-icon svg { width: 26px; height: 26px; }
.category-card h3 { font-size: 1.15rem; }
.category-card p { color: var(--ink-mute); font-size: .92rem; }
.category-card .cat-link {
  margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: .35rem;
}
.category-card .cat-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.category-card:hover .cat-link svg { transform: translateX(3px); }

/* Feature card */
.feature-card { padding: 1.8rem 1.6rem; }
.feature-card .cat-icon { margin-bottom: 1rem; }

/* Product card */
.product-card {
  display: flex; flex-direction: column;
  padding: 0;
}
.product-media {
  position: relative; aspect-ratio: 16/11; overflow: hidden;
  background: linear-gradient(160deg, #16283a 0%, #0c1822 100%);
}
.product-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease-out);
}
.product-media img.is-loaded { opacity: 1; }
.product-code {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .03em;
  padding: .3rem .55rem; border-radius: 8px;
  background: rgba(6,12,18,0.8); color: #f3ecdb;
}
.product-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-cat { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-2); }
.product-body h3 { font-size: 1.03rem; }
.product-body p { font-size: .87rem; color: var(--ink-mute); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .4rem; }
.product-mode { font-size: .76rem; color: var(--ink-mute); }

/* =============================================================
   9. Manifesto / split section
   ============================================================= */
.split {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, #16283a 0%, #0c1822 100%);
}
.split-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s var(--ease-out);
}
.split-figure img.is-loaded { opacity: 1; }
.pillars { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.pillar { display: flex; gap: .9rem; align-items: flex-start; }
.pillar-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--accent) 60%, var(--gold-deep));
  color: #0b1720;
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
}
.pillar h4 { font-size: 1rem; margin-bottom: .2rem; }
.pillar p { font-size: .88rem; color: var(--ink-mute); }

/* =============================================================
   10. Tools (código + sugeridor)
   ============================================================= */
.tool-panel {
  padding: 1.8rem 1.7rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
}
@supports not (backdrop-filter: blur(1px)) {
  .tool-panel { background: rgba(16,28,38,0.94); }
}
.tool-panel-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.3rem; }
.tool-panel-head .cat-icon { width: 46px; height: 46px; border-radius: 13px; }
.tool-panel-head h2 { font-size: 1.25rem; }
.tool-panel-head p { font-size: .86rem; color: var(--ink-mute); margin-top: .15rem; }

.field { position: relative; margin-bottom: 1rem; }
.field label {
  display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: .4rem;
}
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.045); border-color: var(--line);
  font: inherit; color: var(--ink);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field-hint { font-size: .78rem; color: var(--ink-mute); margin-top: .35rem; }

.tool-results { margin-top: 1.5rem; display: grid; gap: 1rem; }
.tool-result-card {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.045); border: 1px solid var(--line-soft);
  animation: fadeUp .5s var(--ease-out) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tool-result-thumb {
  width: 58px; height: 58px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.tool-result-thumb svg { width: 26px; height: 26px; }
.tool-result-info { flex: 1; min-width: 0; }
.tool-result-info .r-code { font-family: var(--mono); font-size: .72rem; color: var(--ink-mute); }
.tool-result-info h4 { font-size: .98rem; margin-top: .1rem; }
.tool-result-info p { font-size: .82rem; color: var(--ink-mute); }
.tool-empty {
  padding: 1.4rem; text-align: center; color: var(--ink-mute); font-size: .9rem;
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
}

.match-score { display: flex; gap: 3px; align-items: center; flex-shrink: 0; }
.match-score span { width: 6px; height: 14px; border-radius: 3px; background: var(--line); }
.match-score span.is-on { background: var(--accent); }

/* =============================================================
   11. Catalog filters
   ============================================================= */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 2rem;
}
.filter-chip {
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  background: transparent;
  transition: all .3s var(--ease-out);
}
.filter-chip.is-active, .filter-chip:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.catalog-search { max-width: 420px; margin-bottom: 1.6rem; }

/* =============================================================
   12. CTA banner
   ============================================================= */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #142838 0%, #050b10 100%);
  color: var(--cream);
  position: relative; overflow: hidden;
  display: grid; gap: 1.6rem;
  text-align: center;
  justify-content: center;
  border: 1px solid var(--glass-line);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(227,189,108,.25), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(124,147,171,.18), transparent 55%);
  opacity: .8;
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 560px; margin-inline: auto; }
.cta-banner h2 { color: var(--cream); font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: .8rem; }
.cta-banner p { color: rgba(251,246,234,.78); margin-bottom: 1.6rem; }
.cta-banner .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-banner .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--cream); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,.14); }

/* =============================================================
   13. Contact
   ============================================================= */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-info-card {
  padding: 1.8rem; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px);
}
.contact-row { display: flex; gap: 1rem; align-items: flex-start; padding-block: .85rem; border-bottom: 1px solid var(--line-soft); }
.contact-row:last-child { border-bottom: none; }
.contact-row .cat-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.contact-row h4 { font-size: .95rem; margin-bottom: .15rem; }
.contact-row p, .contact-row a { font-size: .87rem; color: var(--ink-mute); }
.contact-row a:hover { color: var(--accent); }

.cta-form .field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cta-form .field-row.two { grid-template-columns: 1fr 1fr; } }
.cta-form { position: relative; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; position: absolute; inset: 0; }
.cta-form-spinner {
  display: none; width: 16px; height: 16px; border: 2px solid rgba(11,23,32,.35);
  border-top-color: #0b1720; border-radius: 50%; animation: spin .8s linear infinite;
}
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-success {
  padding: 2.4rem 1.6rem; text-align: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-soft);
}
.cta-success.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cta-success svg { width: 52px; height: 52px; color: var(--accent); margin-inline: auto; margin-bottom: 1rem; }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h5 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: .9rem; }
.footer ul { display: grid; gap: .6rem; }
.footer a { font-size: .92rem; color: var(--ink-soft); }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8rem; color: var(--ink-mute);
}
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--accent); }
.footer-desc { color: var(--ink-mute); font-size: .9rem; max-width: 34ch; margin-top: .8rem; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line);
}
.footer-social svg { width: 18px; height: 18px; }

/* =============================================================
   15. Page hero (subpages)
   ============================================================= */
.page-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 2.5rem;
  position: relative;
  overflow: clip;
}
.page-hero .hero-mesh { opacity: .7; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .9rem; }
.page-hero .lede { font-size: 1.05rem; }
.breadcrumb { display: flex; gap: .4rem; align-items: center; font-size: .82rem; color: var(--ink-mute); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--accent); }

/* =============================================================
   16. Count-up numbers, misc
   ============================================================= */
[data-count-to] { display: inline-block; }

/* =============================================================
   17. Credits page
   ============================================================= */
.credits-list { display: grid; gap: .9rem; margin-top: 1.5rem; }
.credits-item {
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-line);
  font-size: .88rem; color: var(--ink-soft);
}
.credits-item a { color: var(--accent-2); font-weight: 600; }
.credits-item a:hover { text-decoration: underline; }

/* =============================================================
   18. Responsive helpers
   ============================================================= */
@media (min-width: 540px) { .hero-actions { flex-wrap: nowrap; } }
@media (min-width: 720px) {}
@media (min-width: 1280px) {}

.tool-hint {
  font-size: .85rem; color: var(--ink-mute); margin-bottom: .8rem;
  padding-left: .2rem;
}

/* =============================================================
   20. Modal de cotización (NIT / Nombre / Teléfono)
   ============================================================= */
html.modal-open, html.modal-open body { overflow: hidden; }

.quote-modal {
  position: fixed; inset: 0; z-index: 900;
  display: none;
  align-items: center; justify-content: center;
  padding: 1.2rem;
}
.quote-modal.is-open { display: flex; }
.quote-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(4, 9, 13, 0.72);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s var(--ease-out) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.quote-modal-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem 1.8rem;
  background: var(--bg-2);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-lg);
  animation: modalIn .35s var(--ease-out) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.quote-modal-close {
  position: absolute; top: .9rem; right: .9rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line);
  color: var(--ink-mute);
}
.quote-modal-close:hover { color: var(--ink); }
.quote-modal-product {
  padding-right: 2.4rem; margin-bottom: 1.3rem;
}
.quote-modal-product-code {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  color: var(--accent); background: var(--accent-soft);
  padding: .25rem .55rem; border-radius: 7px; margin-bottom: .5rem;
}
.quote-modal-product h3 { font-size: 1.1rem; }
.quote-modal-success {
  display: none; text-align: center; padding: 1.2rem 0 .4rem;
}
.quote-modal-success.is-visible { display: block; }
.quote-modal-success svg { width: 48px; height: 48px; color: var(--accent); margin-inline: auto; margin-bottom: .9rem; }
.quote-modal-success h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.quote-modal-success p { font-size: .88rem; color: var(--ink-mute); margin-bottom: 1.2rem; }

/* =============================================================
   21. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  html { scroll-behavior: auto; }
  /* Do NOT disable: reveal transitions, glass-card hover, magnetic, count-up, underline nav */
}
