/* =============================================================
   NGF Chile — Catálogo B2B · Hoja de estilos única
   Archetype: Glassmorphism Modern reinterpretado en clave industrial.
   Sistema visual 100% original: iconografía SVG + mallas de gradiente.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-shift { syntax: "<percentage>"; initial-value: 0%; inherits: false; }

:root {
  /* Superficies */
  --bg:         #f4f6fb;
  --bg-2:       #eaeef6;
  --surface:    #ffffff;
  --surface-2:  #fafbfe;

  /* Tinta */
  --ink:        #0b1324;
  --ink-soft:   #33405c;
  --ink-mute:   #6a7691;
  --cream:      #eef2fb;   /* texto sobre fondos oscuros */

  /* Marca */
  --brand:        #1d4ed8;   /* azul industrial — confianza / tecnología */
  --brand-strong: #1740b0;
  --brand-deep:   #0a1c46;   /* navy profundo para bandas oscuras */
  --brand-tint:   #e7edfd;

  /* Señal (naranja seguridad — CTA y acentos) */
  --signal:       #ff6a1a;
  --signal-soft:  #ff8c4d;
  --signal-tint:  #fff0e6;

  /* Líneas y sombras */
  --line:        rgba(11, 19, 36, 0.10);
  --line-2:      rgba(11, 19, 36, 0.16);
  --ring:        rgba(29, 78, 216, 0.30);
  --shadow-sm:   0 1px 2px rgba(11,19,36,.06), 0 2px 8px rgba(11,19,36,.05);
  --shadow-md:   0 8px 24px rgba(11,19,36,.08), 0 2px 8px rgba(11,19,36,.05);
  --shadow-lg:   0 24px 60px rgba(11,19,36,.14), 0 8px 24px rgba(11,19,36,.08);
  --shadow-brand:0 20px 44px rgba(29,78,216,.22);

  /* Tipografía */
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  /* Ritmo */
  --gutter: clamp(1.15rem, 4vw, 2.4rem);
  --maxw: 1240px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  /* Easings */
  --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);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-soft);
  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; }
input, textarea, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
}
::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.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;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .65rem 1.1rem; background: var(--ink); color: #fff;
  border-radius: 10px; font-weight: 600; font-size: .9rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(3.4rem, 8vw, 6.5rem); position: relative; }
.section-tight { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.section-alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--signal); border-radius: 2px;
}
.eyebrow-center { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-top: .9rem; }
.section-sub { margin-top: 1rem; font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--ink-mute); max-width: 60ch; }
.section-head.center .section-sub { margin-inline: auto; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-strong);
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  font-family: var(--mono);
}
.pill-signal { background: var(--signal-tint); color: #c24906; }
.pill-ghost { background: rgba(255,255,255,.08); color: var(--cream); border: 1px solid rgba(255,255,255,.16); }

.divider { height: 1px; background: var(--line); border: 0; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  line-height: 1; white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .2s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); background: var(--brand-strong); }
.btn:active { transform: translateY(0); }

.btn-signal { --btn-bg: var(--signal); }
.btn-signal:hover { background: #ec5b0d; box-shadow: 0 20px 44px rgba(255,106,26,.30); }

.btn-dark { --btn-bg: var(--ink); }
.btn-dark:hover { background: #060c18; box-shadow: var(--shadow-lg); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }

.btn-glass {
  --btn-bg: rgba(255,255,255,.10); --btn-fg: var(--cream);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.18); box-shadow: none; }

.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1rem; font-size: .86rem; border-radius: 10px; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Link con subrayado animado */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--brand); font-size: .95rem;
  position: relative;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(244,246,251,.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.03em; }
.brand-name span { color: var(--brand); }

.nav-links { display: none; align-items: center; gap: .3rem; margin-left: .5rem; }
.nav-link {
  padding: .55rem .8rem; border-radius: 9px; font-weight: 500; font-size: .93rem;
  color: var(--ink-soft); transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: rgba(11,19,36,.05); }
.nav-spacer { flex: 1; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-search-btn {
  display: none; align-items: center; gap: .6rem;
  padding: .5rem .8rem .5rem .7rem; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-mute); font-size: .88rem; min-width: 210px;
  transition: border-color .2s, box-shadow .2s;
}
.nav-search-btn:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.nav-search-btn svg { width: 16px; height: 16px; }
.nav-search-btn kbd {
  margin-left: auto; font-family: var(--mono); font-size: .7rem;
  padding: .12rem .4rem; border-radius: 6px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--ink-mute);
}

/* Botón hamburguesa */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); padding: 0 11px;
}
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 99;
  background: var(--bg);
  padding: 1.4rem var(--gutter) 2.4rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu a.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem .2rem; font-family: var(--display); font-size: 1.3rem; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-menu a.m-link span { color: var(--ink-mute); }
.mobile-menu .btn-row { margin-top: 1.6rem; }

/* Acordeón del menú móvil (refleja el desplegable de escritorio) */
.mobile-menu .m-acc-head {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  width: 100%; text-align: left; cursor: pointer;
  padding: 1rem .2rem; font-family: var(--display); font-size: 1.3rem; font-weight: 600;
  color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .m-acc-head.m-acc-head-2 { font-size: 1.08rem; font-weight: 600; padding: .85rem .2rem; }
.mobile-menu .m-acc-chev {
  width: 17px; height: 17px; flex: none; color: var(--ink-mute);
  transition: transform .25s var(--ease-out);
}
.mobile-menu .m-acc-head[aria-expanded="true"] > .m-acc-chev { transform: rotate(90deg); color: var(--signal, #2547d0); }
.mobile-menu .m-acc-panel { display: none; padding-left: .7rem; }
.mobile-menu .m-acc-head[aria-expanded="true"] + .m-acc-panel {
  display: block; animation: mAccReveal .22s var(--ease-out);
}
@keyframes mAccReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mobile-menu .m-sublink {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .78rem .2rem; font-size: 1.04rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .m-sublink:last-child { border-bottom: 0; }
.mobile-menu .m-sublink-all { color: var(--signal, #2547d0); font-weight: 600; }
.mobile-menu .m-sublink-all span { color: var(--ink-mute); font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu .m-acc-chev { transition: none; }
  .mobile-menu .m-acc-head[aria-expanded="true"] + .m-acc-panel { animation: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero { position: relative; padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem); overflow: hidden; }

/* Slideshow de sectores en el fondo del hero (crossfade CSS puro) */
.hero-slideshow { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  animation: heroSlides 48s ease-in-out infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
.hero-slide:nth-child(6) { animation-delay: 30s; }
.hero-slide:nth-child(7) { animation-delay: 36s; }
.hero-slide:nth-child(8) { animation-delay: 42s; }
/* Velo para mantener legible el texto: fuerte a la izquierda (donde va el texto),
   suave a la derecha (donde se aprecia la foto). */
.hero-slideshow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(244,246,251,.97) 0%, rgba(244,246,251,.9) 32%,
    rgba(244,246,251,.62) 62%, rgba(244,246,251,.4) 100%);
}
@keyframes heroSlides {
  0%    { opacity: 0; transform: scale(1.06); }
  2.5%  { opacity: 1; }
  12.5% { opacity: 1; }
  15%   { opacity: 0; transform: scale(1.11); }
  100%  { opacity: 0; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; transform: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
}

.hero-mesh {
  position: absolute; inset: -20% -10% -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 44% at calc(22% + var(--mesh-shift, 0%)) 26%, rgba(29,78,216,.30), transparent 70%),
    radial-gradient(34% 40% at calc(82% - var(--mesh-shift, 0%)) 14%, rgba(255,106,26,.20), transparent 70%),
    radial-gradient(50% 55% at 60% 88%, rgba(29,78,216,.14), transparent 72%);
  filter: blur(46px) saturate(135%);
  animation: meshDrift 26s var(--ease-soft) infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) translate(0,0); }
  50%      { transform: scale(1.12) translate(1.5%, -1.5%); }
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 70% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000 30%, transparent 78%);
  opacity: .6;
}
.hero-inner { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  letter-spacing: -0.035em; line-height: 1.02;
  margin-top: 1.3rem;
}
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .u {
  background: linear-gradient(120deg, var(--brand), var(--signal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 1.5rem; font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  color: var(--ink-soft); max-width: 56ch;
}
.hero .btn-row { margin-top: 2.1rem; }
.hero-trust {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem;
  color: var(--ink-mute); font-size: .86rem;
}
.hero-trust strong { color: var(--ink); font-weight: 700; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 2.8rem;
}
.stat {
  background: var(--surface); padding: 1.3rem 1.4rem;
}
.stat-num {
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; line-height: 1;
}
.stat-num span { color: var(--brand); }
.stat-label { margin-top: .4rem; font-size: .82rem; color: var(--ink-mute); }

/* =============================================================
   7. Category grid
   ============================================================= */
.cat-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.cat-card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
  overflow: hidden; min-height: 190px;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, var(--brand-tint), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card:hover::after { opacity: 1; }
.cat-card > * { position: relative; z-index: 1; }
.cat-ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
  color: #fff; box-shadow: var(--shadow-brand);
}
.cat-ico.sig { background: linear-gradient(150deg, var(--signal), #e0500a); box-shadow: 0 14px 30px rgba(255,106,26,.28); }
.cat-ico svg { width: 27px; height: 27px; }
.cat-card h3 { font-size: 1.16rem; letter-spacing: -0.02em; }
.cat-card p { margin-top: .4rem; font-size: .88rem; color: var(--ink-mute); flex: 1; }
.cat-card .cat-count {
  margin-top: 1rem; font-family: var(--mono); font-size: .74rem;
  color: var(--brand-strong); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem;
}
.cat-card .cat-count svg { width: 13px; height: 13px; transition: transform .3s var(--ease-out); }
.cat-card:hover .cat-count svg { transform: translateX(3px); }

/* =============================================================
   7c. Nuestro transporte / flota
   ============================================================= */
.fleet-band {
  position: relative; overflow: hidden; color: #eef2fb;
  padding-block: clamp(3.2rem, 7vw, 5.4rem);
  background: linear-gradient(120deg, #0b1324 0%, #10234d 55%, #0b1324 100%);
}
.fleet-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/img/flota/van-back.jpg") center/cover no-repeat;
  opacity: .16; filter: grayscale(.3) blur(1px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 100%);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 100%);
}
.fleet-band .container { position: relative; z-index: 1; }
.fleet-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; align-items: center; }
.fleet-copy .eyebrow-light { color: var(--signal); }
.fleet-band h2 { color: #fff; }
.fleet-lead { color: rgba(238,242,251,.82); font-size: 1.02rem; line-height: 1.6; margin-top: .6rem; max-width: 46ch; }
.fleet-feats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem 1.4rem; margin: 1.7rem 0 1.8rem; }
.fleet-feats li { display: flex; gap: .8rem; align-items: flex-start; }
.fleet-feats .ff-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--signal); }
.fleet-feats .ff-ic svg { width: 21px; height: 21px; }
.fleet-feats b { display: block; color: #fff; font-size: .96rem; }
.fleet-feats small { color: rgba(238,242,251,.66); font-size: .82rem; line-height: 1.35; display: block; margin-top: .1rem; }

/* Visual de furgones */
.fleet-visual { position: relative; min-height: 300px; }
.fleet-van { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(0,0,0,.65); }
.fleet-van img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fleet-van-back {
  position: absolute; top: 0; right: 0; width: 62%; aspect-ratio: 16/10;
  opacity: .5; filter: brightness(.7) grayscale(.2); z-index: 1;
  transform: translateY(-6%);
}
.fleet-van-front { position: relative; z-index: 2; width: 86%; margin-top: 14%; aspect-ratio: 16/10; border: 1px solid rgba(255,255,255,.1); }
@media (min-width: 900px) {
  .fleet-grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
  .fleet-visual { min-height: 380px; }
}

/* =============================================================
   8. Sectores / industrias
   ============================================================= */
.sector-band { background: var(--brand-deep); color: var(--cream); position: relative; overflow: hidden; }
.sector-band .hero-grid { opacity: .12; mask-image: none; -webkit-mask-image: none; }
.sector-band h2, .sector-band h3 { color: #fff; }
.sector-band .section-sub { color: rgba(238,242,251,.72); }
.sector-band .eyebrow { color: var(--signal-soft); }
.sector-band .eyebrow::before { background: var(--signal); }

.sector-grid {
  display: grid; gap: 1rem; margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.sector-card {
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.4rem; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: transform .4s var(--ease-out), background .3s;
}
.sector-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.sector-card .cat-ico { margin-bottom: 0; width: 46px; height: 46px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); box-shadow: none; }
.sector-card h3 { font-size: 1.1rem; }
.sector-card p { font-size: .85rem; color: rgba(238,242,251,.66); }
.sector-card .link-arrow { color: var(--signal-soft); margin-top: auto; }

/* =============================================================
   9. Value props / cómo funciona
   ============================================================= */
.value-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value {
  padding: 1.6rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.value .cat-ico { width: 46px; height: 46px; background: var(--brand-tint); color: var(--brand); box-shadow: none; }
.value h3 { font-size: 1.14rem; }
.value p { margin-top: .5rem; font-size: .92rem; color: var(--ink-mute); }

.step-grid { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  position: relative; padding: 1.7rem 1.5rem 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-weight: 700; font-size: .82rem; color: var(--signal);
  display: block; margin-bottom: .8rem;
}
.step h3 { font-size: 1.1rem; }
.step p { margin-top: .45rem; font-size: .9rem; color: var(--ink-mute); }

/* =============================================================
   10. Breadcrumbs
   ============================================================= */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .82rem; color: var(--ink-mute); font-family: var(--mono);
  padding-block: 1.2rem;
}
.crumbs a { color: var(--ink-mute); transition: color .2s; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--ink); }

/* =============================================================
   11. Página de categoría (landing SILO)
   ============================================================= */
.cat-hero {
  position: relative; overflow: hidden;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.cat-hero .hero-mesh { filter: blur(60px) saturate(130%); opacity: .8; }
.cat-hero-inner { max-width: 760px; padding-bottom: clamp(2rem,4vw,3rem); }
.cat-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-top: 1rem; }
.cat-hero p { margin-top: 1.1rem; font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.cat-hero .chip-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .4rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .2s var(--ease-out);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
button.chip { font-family: inherit; cursor: pointer; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Subcategorías */
.sub-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sub-card {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.sub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.sub-card .cat-ico { width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.sub-card .cat-ico svg { width: 22px; height: 22px; }
.sub-card h3 { font-size: 1rem; }
.sub-card small { color: var(--ink-mute); font-family: var(--mono); font-size: .72rem; }

/* Toolbar filtros */
.catalog-layout { display: grid; gap: 2rem; }
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow-sm); align-self: start;
}
.filters h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); color: var(--ink-mute); font-weight: 600; }
.filter-group { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group > span { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: .7rem; }
.check {
  display: flex; align-items: center; gap: .6rem; padding: .3rem 0;
  font-size: .9rem; color: var(--ink-soft); cursor: pointer;
}
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.check .n { margin-left: auto; font-family: var(--mono); font-size: .74rem; color: var(--ink-mute); }

.catalog-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  margin-bottom: 1.4rem;
}
.catalog-toolbar .count { font-family: var(--mono); font-size: .82rem; color: var(--ink-mute); }
.catalog-toolbar .count b { color: var(--ink); }
.catalog-toolbar select {
  margin-left: auto; padding: .55rem .9rem; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: .88rem; font-weight: 500;
}
.filter-toggle { display: inline-flex; }

/* =============================================================
   12. Product card
   ============================================================= */
.prod-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.prod-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.prod-media {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center;
  background:
    radial-gradient(70% 70% at 50% 25%, var(--brand-tint), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.prod-media svg.art { width: 46%; height: 46%; color: var(--brand); opacity: .92; transition: transform .5s var(--ease-out); }
.prod-card:hover .prod-media svg.art { transform: scale(1.07) rotate(-2deg); }
.prod-tag {
  position: absolute; top: .7rem; left: .7rem;
  font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .04em;
  padding: .25rem .55rem; border-radius: 6px; background: var(--ink); color: #fff;
}
.prod-tag.stock { background: #0f7a4f; }
.prod-tag.norma { left: auto; right: .7rem; background: var(--signal); }
.prod-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.prod-brand { font-family: var(--mono); font-size: .7rem; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }
.prod-card h3 { font-size: 1.02rem; margin-top: .3rem; letter-spacing: -0.015em; }
.prod-card h3 a::after { content: ""; position: absolute; inset: 0; } /* toda la card clicable */
.prod-desc { margin-top: .35rem; font-size: .82rem; line-height: 1.45; color: var(--ink-mute); }
.prod-meta { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.prod-meta .mini {
  font-size: .7rem; color: var(--ink-mute); padding: .18rem .5rem; border-radius: 6px;
  background: var(--bg-2); font-family: var(--mono);
}
.prod-foot { margin-top: 1rem; display: flex; align-items: center; gap: .6rem; }
.prod-quote {
  position: relative; z-index: 2; margin-left: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem; border-radius: 9px; font-size: .82rem; font-weight: 600;
  background: var(--brand-tint); color: var(--brand-strong);
  transition: background .2s, color .2s;
}
.prod-quote:hover { background: var(--brand); color: #fff; }
.prod-sku { font-family: var(--mono); font-size: .7rem; color: var(--ink-mute); }

/* =============================================================
   13. Ficha de producto
   ============================================================= */
.pdp { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
.pdp-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 30%, var(--brand-tint), transparent 72%),
    var(--surface);
  border: 1px solid var(--line); aspect-ratio: 1/1; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.pdp-media .hero-grid { opacity: .4; }
.pdp-media svg.art { width: 44%; height: 44%; color: var(--brand); position: relative; z-index: 1; }
.pdp-thumbs { display: flex; gap: .7rem; margin-top: .9rem; }
.pdp-thumb {
  width: 68px; height: 68px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); display: grid; place-items: center; color: var(--ink-mute);
  transition: border-color .2s, color .2s;
}
.pdp-thumb.is-active, .pdp-thumb:hover { border-color: var(--brand); color: var(--brand); }
.pdp-thumb svg { width: 40%; height: 40%; }

.pdp-info h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: .7rem; }
.pdp-brandline { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.pdp-desc { margin-top: 1.1rem; font-size: 1.04rem; color: var(--ink-soft); }
.pdp-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }

/* Caja de cotización */
.quote-box {
  margin-top: 1.7rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-md);
}
.quote-box .qb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.quote-box .qb-price { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.quote-box .qb-note { font-size: .82rem; color: var(--ink-mute); }
.qty-row { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 42px; font-size: 1.2rem; color: var(--ink); transition: background .2s; }
.qty-stepper button:hover { background: var(--bg-2); }
.qty-stepper input { width: 54px; height: 42px; text-align: center; border: 0; border-inline: 1px solid var(--line); font-weight: 600; font-family: var(--mono); }
.quote-box .btn-row { margin-top: 1.1rem; }
.quote-alt { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .8rem; }
.quote-alt a {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .8rem .5rem; border-radius: 11px; border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: var(--ink-soft); text-align: center;
  transition: border-color .2s, color .2s, transform .2s;
}
.quote-alt a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.quote-alt svg { width: 20px; height: 20px; }
.quote-alt a.wa:hover { border-color: #25d366; color: #128c39; }

/* Specs */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.spec-table th, .spec-table td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.spec-table th { color: var(--ink-mute); font-weight: 500; width: 42%; font-family: var(--mono); font-size: .82rem; }
.spec-table td { color: var(--ink); font-weight: 500; }

.tab-nav { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; flex-wrap: wrap; }
.tab-btn {
  padding: .8rem 1rem; font-weight: 600; font-size: .92rem; color: var(--ink-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.tab-btn.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .4s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1rem; }
.prose h3 { margin: 1.6rem 0 .6rem; font-size: 1.2rem; }
.prose ul { margin: 0 0 1rem 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--ink); }

/* =============================================================
   14. FAQ (GEO)
   ============================================================= */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem .2rem; text-align: left; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem); color: var(--ink);
}
.faq-q .ico { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; transition: transform .35s var(--ease-out), background .3s, color .3s; }
.faq-q .ico svg { width: 15px; height: 15px; }
.faq-item[open] .faq-q .ico { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a { padding: 0 .2rem 1.4rem; color: var(--ink-soft); max-width: 70ch; }
.faq-a p { margin-bottom: .7rem; }
.faq-a ul { margin: .4rem 0 .8rem 1.1rem; }
.faq-a li { margin-bottom: .3rem; }
/* details/summary */
details.faq-item summary { list-style: none; cursor: pointer; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* =============================================================
   15. CTA band
   ============================================================= */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 130%);
  color: var(--cream); padding: clamp(2.4rem, 6vw, 4rem);
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 88% 12%, rgba(255,106,26,.34), transparent 62%),
    radial-gradient(40% 60% at 10% 100%, rgba(255,255,255,.14), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 22ch; }
.cta p { margin-top: 1rem; color: rgba(238,242,251,.8); max-width: 52ch; font-size: 1.08rem; }
.cta .btn-row { margin-top: 1.8rem; }

/* =============================================================
   16. Footer
   ============================================================= */
.footer { background: var(--ink); color: rgba(238,242,251,.7); padding-block: clamp(2.8rem, 6vw, 4.4rem) 2rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 1rem; font-size: .9rem; max-width: 38ch; }
.footer-brand .socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-brand .socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: rgba(238,242,251,.8); }
.footer-brand .socials a:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-col h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--mono); font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { font-size: .9rem; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; font-size: .82rem;
}
.footer-bottom .fine { color: rgba(238,242,251,.5); }
.footer-bottom nav { margin-left: auto; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* =============================================================
   17. Formularios (cotizar)
   ============================================================= */
.form-wrap { display: grid; gap: 2.5rem; }
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .45rem; }
.field label .req { color: var(--signal); }
.field .hint { font-weight: 400; color: var(--ink-mute); font-size: .8rem; }
.input, .textarea, .select {
  width: 100%; padding: .8rem 1rem; border-radius: 11px;
  border: 1.5px solid var(--line-2); background: var(--surface-2);
  font-size: .95rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}
.textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: .4rem; }
.form-success {
  display: none; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.2rem; margin-bottom: 1.4rem;
  background: #eafaf1; border: 1px solid #b6e6cd; border-radius: 12px; color: #0d6b42;
}
.form-success.show { display: flex; animation: fadeIn .4s var(--ease-out); }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

.cart-aside {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; align-self: start;
}
.cart-aside h3 { font-size: 1.1rem; }
.cart-line { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-line .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); flex-shrink: 0; }
.cart-line .ic svg { width: 22px; height: 22px; }
.cart-line .t { font-weight: 600; color: var(--ink); font-size: .9rem; }
.cart-line .s { font-family: var(--mono); font-size: .72rem; color: var(--ink-mute); }
.cart-line .q { margin-left: auto; font-family: var(--mono); font-weight: 600; color: var(--ink); }
.cart-empty { color: var(--ink-mute); font-size: .9rem; padding: 1rem 0; }
.trust-list { list-style: none; display: grid; gap: .7rem; margin-top: 1.2rem; }
.trust-list li { display: flex; gap: .6rem; font-size: .86rem; color: var(--ink-soft); }
.trust-list svg { width: 18px; height: 18px; color: #0f7a4f; flex-shrink: 0; }

/* =============================================================
   18. Search overlay
   ============================================================= */
.search-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center;
  padding-top: 12vh; background: rgba(11,19,36,.4); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease-out), visibility .25s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-panel {
  width: min(620px, 92vw); background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
  transform: translateY(-12px) scale(.98); transition: transform .3s var(--ease-out);
}
.search-overlay.is-open .search-panel { transform: none; }
.search-field { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.search-field svg { width: 20px; height: 20px; color: var(--ink-mute); flex-shrink: 0; }
.search-field input { flex: 1; border: 0; background: none; font-size: 1.1rem; outline: none; }
.search-field kbd { font-family: var(--mono); font-size: .68rem; padding: .2rem .45rem; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-mute); }
.search-results { max-height: 52vh; overflow-y: auto; padding: .5rem; }
.search-group-label { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); padding: .7rem .8rem .3rem; }
.search-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 10px; transition: background .15s; }
.search-item:hover, .search-item.is-active { background: var(--brand-tint); }
.search-item .si-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); flex-shrink: 0; }
.search-item .si-ic svg { width: 18px; height: 18px; }
.search-item .si-t { font-weight: 600; color: var(--ink); font-size: .94rem; }
.search-item .si-s { font-size: .78rem; color: var(--ink-mute); }
.search-empty { padding: 2rem; text-align: center; color: var(--ink-mute); font-size: .92rem; }

/* =============================================================
   19. Reveal / animaciones
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[style*="--d"] { transition-delay: var(--d); }
.is-ready .reveal { will-change: opacity, transform; }

/* Tilt */
[data-tilt] { transform-style: preserve-3d; }

/* =============================================================
   19b. Imágenes reales de producto + logos de clientes
   ============================================================= */
.cat-media {
  aspect-ratio: 16 / 11; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-bottom: 1.1rem;
  display: grid; place-items: center;
}
.cat-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 14px; transition: transform .5s var(--ease-out); }
.cat-card:hover .cat-media img { transform: scale(1.06); }

.prod-media { background: #fff; }
.prod-media img.pimg { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 16px; transition: transform .5s var(--ease-out); }
.prod-card:hover .prod-media img.pimg { transform: scale(1.05); }

.pdp-media { background: #fff; }
.pdp-media img.pimg { width: 82%; height: 82%; object-fit: contain; object-position: center; position: relative; z-index: 1; }
.pdp-thumb { overflow: hidden; }
.pdp-thumb img.pimg { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 9px; }

/* Regla de seguridad: cualquier imagen de producto que no use .pimg también
   debe verse completa y centrada dentro de su contenedor. */
.prod-media img, .pdp-media img, .pdp-thumb img, .cat-media img {
  object-fit: contain;
  object-position: center;
}

/* Franja de clientes */
.clients { border-block: 1px solid var(--line); background: var(--surface); }
.clients .lbl { text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.7rem; }
.clients-track { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem 2.6rem; }
.clients-track img { height: 26px; width: auto; max-width: 120px; object-fit: contain; opacity: .55; filter: grayscale(1); transition: opacity .3s var(--ease-out), filter .3s var(--ease-out); }
.clients-track img:hover { opacity: 1; filter: none; }
@media (min-width: 720px) { .clients-track img { height: 32px; max-width: 140px; } .clients-track { gap: 2rem 3.4rem; } }

/* =============================================================
   19c. Carruseles de marcas + productos por categoría (home)
   ============================================================= */
.cat-showcase { margin-top: 2.4rem; }
.cat-showcase:first-child { margin-top: 0; }
.cat-showcase-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cat-showcase-head h3 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); letter-spacing: -0.02em; }
.cat-showcase-head a { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--brand); white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.cat-showcase-head a svg { width: 15px; height: 15px; }

/* Marquee de marcas: auto-scroll infinito, se pausa al pasar el mouse */
.brand-strip {
  position: relative; overflow: hidden; margin-bottom: 1.2rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brand-track { display: flex; align-items: center; gap: 2.6rem; width: max-content; padding: 1rem 1.4rem; animation: brand-scroll 38s linear infinite; }
.brand-strip:hover .brand-track { animation-play-state: paused; }
.brand-item { flex-shrink: 0; display: grid; place-items: center; height: 34px; }
.brand-item img { height: 30px; width: auto; max-width: 128px; object-fit: contain; opacity: .5; filter: grayscale(1); transition: opacity .3s var(--ease-out), filter .3s var(--ease-out); }
.brand-item:hover img { opacity: 1; filter: none; }
@keyframes brand-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .brand-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* Carrusel de productos: scroll horizontal con snap + flechas */
.prod-carousel { position: relative; }
.prod-carousel-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: .3rem .1rem 1rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.prod-carousel-track::-webkit-scrollbar { height: 6px; }
.prod-carousel-track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.prod-carousel-track > .prod-card { flex: 0 0 clamp(200px, 44vw, 244px); scroll-snap-align: start; }
.carousel-btn {
  position: absolute; top: calc(50% - 20px); transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-md); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s;
}
.carousel-btn:hover { background: var(--bg-2); }
.carousel-btn[hidden] { display: none; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }
@media (max-width: 620px) { .carousel-btn { display: none; } }

/* =============================================================
   20. Responsive
   ============================================================= */
@media (min-width: 640px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .quote-alt { gap: .7rem; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-search-btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .catalog-layout { grid-template-columns: 260px 1fr; }
  .filter-toggle { display: none; }
  .pdp { grid-template-columns: 1fr 1fr; align-items: start; }
  .pdp-sticky { position: sticky; top: 96px; }
  .form-wrap { grid-template-columns: 1.7fr 1fr; align-items: start; }
  .cart-aside { position: sticky; top: 96px; }
}
@media (min-width: 1180px) {
  .hero-inner { max-width: 820px; }
}

/* Filtros: colapsables en móvil */
@media (max-width: 959px) {
  .filters { display: none; }
  .filters.is-open { display: block; }
}

/* =============================================================
   21. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .reveal { transition-duration: .35s; }
}

/* =============================================================
   22. View transitions (multipágina)
   ============================================================= */
@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);
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* =============================================================
   23. Botón flotante de WhatsApp (inyectado por main.js en toda página)
   ============================================================= */
.wa-float {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 950;                 /* sobre el contenido, bajo overlays modales */
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25D366;          /* verde WhatsApp */
  color: #fff;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.6), 0 4px 12px rgba(0,0,0,.28);
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-float:hover, .wa-float:focus-visible {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 16px 34px -6px rgba(37,211,102,.7), 0 6px 16px rgba(0,0,0,.32);
  outline: none;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; display: block; }
/* Halo/pulso sutil para llamar la atención */
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: waPulse 2.6s ease-out infinite; pointer-events: none;
}
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
/* Etiqueta que aparece al pasar el cursor (solo desktop con hover fino) */
.wa-float .wa-label {
  position: absolute; right: 70px; white-space: nowrap;
  background: #0b1324; color: #fff; font-size: .82rem; font-weight: 600;
  padding: .45em .8em; border-radius: 8px; opacity: 0; transform: translateX(6px);
  transition: opacity .18s ease, transform .18s ease; pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover .wa-label { opacity: 1; transform: translateX(0); }
}
@media (max-width: 560px) {
  .wa-float { width: 54px; height: 54px; }
  .wa-float svg { width: 29px; height: 29px; }
  .wa-float .wa-label { display: none; }   /* sin tooltip en móvil */
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
  .wa-float::after { animation: none; }
}

/* =============================================================
   24. Menú desplegable de Catálogo (hover, inyectado por main.js)
   ============================================================= */
.nav-item-drop { position: relative; display: inline-flex; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 460px; margin-top: .55rem;
  background: #fff; border: 1px solid rgba(11,19,36,.10); border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(11,19,36,.28), 0 6px 16px rgba(11,19,36,.10);
  padding: .8rem; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
/* Puente invisible para no perder el hover en el espacio link→panel */
.nav-dropdown::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-item-drop:hover .nav-dropdown,
.nav-item-drop:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-title {
  display: block; font-family: var(--mono, ui-monospace, monospace);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #7a879e; padding: .1rem .55rem .55rem;
}
.nav-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .12rem .35rem; }
.nav-dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .52rem .6rem; border-radius: 9px;
  color: #1a2540; font-size: .88rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: background .14s ease, color .14s ease;
}
.nav-dropdown a svg { width: 15px; height: 15px; opacity: 0; transform: translateX(-4px); transition: opacity .14s ease, transform .14s ease; flex-shrink: 0; }
.nav-dropdown a:hover { background: #eef2fb; color: #2547d0; }
.nav-dropdown a:hover svg { opacity: 1; transform: translateX(0); }
.nav-link[aria-haspopup] { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown { transition: visibility .16s; transform: none; }
}
/* En móvil el menú de escritorio no se muestra; se usa el menú hamburguesa */
@media (max-width: 900px) { .nav-dropdown { display: none; } }

/* ============================================================================
   Navegacion por MARCAS (home / marcas.php / marca.php)
   Bandas por categoria con imagen de fondo + chips pequenos (solo nombre).
   ============================================================================ */
.brand-nav { display: flex; flex-direction: column; gap: 1rem; }

/* Banda de categoria: foto de fondo con degradado azul de marca encima */
.brand-nav-cat {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem 1.3rem;
  background-color: var(--brand-deep);
  background-image: linear-gradient(100deg, rgba(10,28,70,.95) 0%, rgba(10,28,70,.80) 44%, rgba(10,28,70,.55) 100%), var(--cat-img, none);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-sm);
}
.brand-nav-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.brand-nav-head h3 { color: #fff; font-size: clamp(1.05rem, 2.2vw, 1.35rem); letter-spacing: -0.02em; text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.brand-nav-all { font-family: var(--mono); font-size: .74rem; font-weight: 600; color: #fff; opacity: .88; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.brand-nav-all:hover { opacity: 1; }
.brand-nav-all svg { width: 14px; height: 14px; }

/* Fila de chips que se ajustan al ancho */
.brand-btn-grid { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Chip de marca: pequeno, solo texto, sobre la foto */
.brand-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px;
  color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.brand-btn:hover { background: var(--signal); border-color: transparent; transform: translateY(-2px); color: #fff; }
.brand-btn-count { font-family: var(--mono); font-size: .66rem; font-weight: 600; opacity: .8; }

/* Marca sin logo (fallback de texto en la ficha de marca) */
.brand-btn-txt { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--ink-soft); letter-spacing: -0.01em; line-height: 1.1; }

@media (max-width: 540px) {
  .brand-nav-cat { padding: 1rem 1rem 1.1rem; }
  .brand-btn { padding: .34rem .62rem; font-size: .78rem; }
}

/* Encabezado de la pagina de una marca (marca.php) */
.brand-page-head { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.brand-page-logo {
  flex: 0 0 auto; width: 168px; height: 104px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 1rem;
}
.brand-page-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-page-info { flex: 1 1 300px; }
.brand-page-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: .2rem 0 .5rem; }
.brand-page-sub { color: var(--ink-mute); max-width: 62ch; margin-bottom: 1rem; }

/* Estado vacio (marca sin productos aun) */
.brand-empty {
  text-align: center; padding: 2.4rem 1rem; background: var(--surface-2);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.brand-empty p { color: var(--ink-soft); margin-bottom: 1rem; }

/* Paginacion simple */
.pager { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2rem; }
.pager-status { font-family: var(--mono); font-size: .8rem; color: var(--ink-mute); }


/* Catalogo megamenu: 14 categorias en columna + submenu flotante de Aseo */
.nav-catmenu { min-width: 264px; padding: .7rem; }
.nav-catcol { display: flex; flex-direction: column; }
.nav-catsub { position: relative; }
.nav-flyout {
  position: absolute; left: 100%; top: -.7rem; margin-left: .4rem;
  min-width: 440px; max-height: min(72vh, 470px); overflow-y: auto;
  background: #fff; border: 1px solid rgba(11,19,36,.10); border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(11,19,36,.28), 0 6px 16px rgba(11,19,36,.10);
  padding: .8rem; z-index: 320;
  opacity: 0; visibility: hidden; transform: translateX(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-flyout::before { content: ""; position: absolute; left: -.5rem; top: 0; bottom: 0; width: .5rem; }
.nav-catsub:hover .nav-flyout, .nav-catsub:focus-within .nav-flyout { opacity: 1; visibility: visible; transform: translateX(0); }
.nav-catsub-link .nav-chev { opacity: .5; transform: none; }
.nav-catsub:hover > .nav-catsub-link { background: #eef2fb; color: #2547d0; }
.nav-catsub:hover > .nav-catsub-link .nav-chev { opacity: 1; }
@media (max-width: 900px) { .nav-flyout { display: none; } }
