/* ═══════════════════════════════════════════════════════
   FERRETEC JR — CSS v2.0
   Mega menú + buscador protagonista + imágenes reales
   Sin scroll horizontal. Max-width controlado.
═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────── */
:root {
  --c-bg:        #0D0D0D;
  --c-surface:   #161616;
  --c-surface2:  #1F1F1F;
  --c-border:    #2A2A2A;
  --c-text:      #F0F0F0;
  --c-muted:     #888;
  --c-panel:     #FFFFFF;
  --c-panel-alt: #F5F5F5;
  --c-text-dark: #111;
  --c-border-lt: #E0E0E0;

  --c-yellow:    #FFD600;
  --c-yellow-dk: #C9A800;
  --c-red:       #E53935;
  --c-red-dk:    #B71C1C;
  --c-wa:        #25D366;

  --font-h: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-b: "Barlow", Arial, Helvetica, sans-serif;

  --w: min(1200px, calc(100% - 2rem));
  --r: 3px;

  --sh-card:   0 2px 12px rgba(0,0,0,.35);
  --sh-yellow: 0 0 30px rgba(255,214,0,.12);
}

/* ── Reset ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--c-bg); color: var(--c-text); font-family: var(--font-b); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }
.wrap { width: var(--w); margin-inline: auto; }

/* ── Topbar ─────────────────────────── */
.topbar {
  background: var(--c-yellow); color: var(--c-text-dark);
  font-family: var(--font-h); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .38rem 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: .35rem; }
.topbar-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.topbar-sep { opacity: .4; font-size: 1rem; }
.topbar-item a { color: inherit; }

/* ══════════════════════════════════════
   HEADER — 3 capas
══════════════════════════════════════ */

/* Capa 1: logo + buscador + wa */
.header-main {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: .7rem 0;
  position: sticky; top: 0; z-index: 100;
}
.header-main-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem; align-items: center;
}

/* Logo */
.brand-link { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; background: var(--c-yellow); color: var(--c-text-dark);
  font-family: var(--font-h); font-weight: 900; font-size: 1.1rem;
  display: grid; place-items: center; flex-shrink: 0;
  clip-path: polygon(0 0,100% 0,100% 78%,88% 100%,0 100%);
}
.brand-text { line-height: 1.1; }
.brand-name { font-family: var(--font-h); font-size: 1.3rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.brand-name span { color: var(--c-yellow); }
.brand-sub { font-family: var(--font-h); font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }

/* Buscador */
.search-bar { display: flex; align-items: center; background: var(--c-panel); border-radius: var(--r); overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
.search-bar:focus-within { border-color: var(--c-yellow); }
.search-input {
  flex: 1; padding: .65rem 1rem; border: 0; outline: 0; background: transparent;
  font-family: var(--font-b); font-size: .95rem; color: var(--c-text-dark);
  min-width: 0;
}
.search-input::placeholder { color: #aaa; }
.search-btn {
  background: var(--c-yellow); border: 0; padding: 0 1.1rem; height: 100%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--c-text-dark); transition: background .15s;
}
.search-btn:hover { background: var(--c-yellow-dk); }
.search-btn svg { width: 18px; height: 18px; }

/* Botón WA header */
.btn-wa-header {
  display: flex; align-items: center; gap: .45rem; flex-shrink: 0;
  background: var(--c-wa); color: #fff; padding: .6rem 1.1rem;
  font-family: var(--font-h); font-size: .75rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; border-radius: var(--r);
  transition: background .15s;
}
.btn-wa-header:hover { background: #1da851; }
.btn-wa-header svg { width: 18px; height: 18px; }
.btn-wa-header span { display: none; }

/* Capa 2: nav principal */
.header-nav {
  background: var(--c-bg);
  border-bottom: 2px solid var(--c-yellow);
  position: sticky; top: 73px; z-index: 99;
}
.nav-inner { display: flex; align-items: center; gap: 0; }

/* Links del nav */
.nav-link {
  display: flex; align-items: center; gap: .3rem; padding: .72rem 1rem;
  font-family: var(--font-h); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted);
  white-space: nowrap; transition: color .15s, background .15s; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--c-yellow); }
.nav-link .chev { width: 10px; height: 10px; fill:none; stroke:currentColor; stroke-width:2; transition: transform .2s; }
.nav-link:hover .chev { transform: rotate(180deg); }
.nav-item { position: relative; }
.nav-item:hover .nav-link { color: var(--c-yellow); }

/* Separador nav */
.nav-sep { width: 1px; height: 20px; background: var(--c-border); margin: 0 .25rem; flex-shrink: 0; }

/* Promociones — badge rojo */
.nav-badge { background: var(--c-red); color:#fff; font-size:.55rem; font-weight:800; padding:.12rem .35rem; letter-spacing:.08em; margin-left:.3rem; border-radius:2px; }

/* Empresas destaca */
.nav-link.empresas { color: var(--c-yellow); }

/* ═══════════════════════════════════
   MEGA MENÚ
═══════════════════════════════════ */
.mega-menu {
  position: fixed; left: 0; right: 0;
  top: 120px; /* topbar(32) + header-main(73) + nav(?) ajustar con JS */
  background: var(--c-surface);
  border-top: 2px solid var(--c-yellow);
  border-bottom: 1px solid var(--c-border);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s, transform .18s;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.mega-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-inner { padding: 1.8rem var(--w); padding-inline: calc((100% - 1200px)/2); }
@supports not (width: min(1200px, 100%)) { .mega-inner { padding-inline: 1rem; } }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.mega-col { padding: 0 1.2rem; border-right: 1px solid var(--c-border); }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { border-right: 0; padding-right: 0; }

.mega-col-title {
  font-family: var(--font-h); font-size: .65rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--c-yellow);
  margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; gap: .4rem;
}
.mega-col-title svg { width: 14px; height: 14px; opacity: .7; flex-shrink: 0; }

.mega-links { display: flex; flex-direction: column; gap: .1rem; }
.mega-link {
  font-family: var(--font-h); font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted);
  padding: .3rem .4rem; transition: color .12s, background .12s;
  border-radius: 2px;
}
.mega-link:hover { color: var(--c-yellow); background: rgba(255,214,0,.07); }

/* Columna especial: marcas + destacados */
.mega-brands { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.mega-brand-pill {
  padding: .25rem .7rem; background: var(--c-surface2); border: 1px solid var(--c-border);
  font-family: var(--font-h); font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-text);
  transition: background .12s, border-color .12s, color .12s;
}
.mega-brand-pill:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-text-dark); }

.mega-promo {
  background: var(--c-surface2); padding: .9rem; border: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: .4rem;
}
.mega-promo-tag { font-family: var(--font-h); font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-red); }
.mega-promo-title { font-family: var(--font-h); font-size: 1rem; font-weight: 800; text-transform: uppercase; }
.mega-promo-link { font-family: var(--font-h); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-yellow); }
.mega-promo-link:hover { text-decoration: underline; }

/* Overlay oscuro detrás del mega menú */
.mega-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 199; display: none;
}
.mega-overlay.open { display: block; }

/* ── Menú marcas (dropdown simple) ─── */
.brands-dropdown {
  position: absolute; left: 0; top: calc(100% + 2px);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-top: 2px solid var(--c-yellow); min-width: 200px; z-index: 200;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .15s, transform .15s;
}
.nav-item:hover .brands-dropdown,
.nav-item:focus-within .brands-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.brands-dropdown a {
  display: block; padding: .6rem 1.1rem;
  font-family: var(--font-h); font-size: .73rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted);
  border-bottom: 1px solid var(--c-border); transition: background .12s, color .12s;
}
.brands-dropdown a:last-child { border-bottom: 0; }
.brands-dropdown a:hover { background: var(--c-yellow); color: var(--c-text-dark); }

/* ── Hamburger mobile ─────────────── */
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--c-border);
  color: var(--c-text); padding: .45rem .7rem;
  font-family: var(--font-h); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.mobile-nav {
  display: none; flex-direction: column; background: var(--c-surface);
  border-top: 1px solid var(--c-border); overflow-y: auto;
  max-height: calc(100vh - 73px); position: sticky; top: 73px; z-index: 98;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: .85rem 1.5rem; border-bottom: 1px solid var(--c-border);
  font-family: var(--font-h); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted);
}
.mobile-nav a:hover { color: var(--c-yellow); background: rgba(255,214,0,.05); }
.mobile-nav .mobile-section {
  padding: .5rem 1.5rem .25rem;
  font-family: var(--font-h); font-size: .6rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--c-yellow);
  background: var(--c-surface2);
}

/* ══════════════════════════════════════
   HERO — compacto, imagen real de fondo
══════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  height: clamp(320px, 52vw, 580px);
  display: flex; align-items: center;
  background: var(--c-bg);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transition: opacity .7s;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.2) 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 2rem 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--c-yellow); color: var(--c-text-dark);
  font-family: var(--font-h); font-size: .68rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; padding: .28rem .75rem;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-h); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 6.5vw, 5.5rem); line-height: .9; margin-bottom: .9rem;
}
.hero-title em { color: var(--c-yellow); font-style: normal; display: block; }
.hero-sub { font-size: .95rem; color: rgba(240,240,240,.75); max-width: 460px; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Dots slider */
.hero-dots { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: .5rem; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); border: 0; transition: background .2s, transform .2s; }
.hero-dot.active { background: var(--c-yellow); transform: scale(1.4); }

/* ══════════════════════════════════════
   MÉTRICAS — franja compacta
══════════════════════════════════════ */
.metrics-band { background: var(--c-yellow); }
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.metric-item { padding: 1rem 1.5rem; text-align: center; border-right: 1px solid rgba(0,0,0,.12); }
.metric-item:last-child { border-right: 0; }
.metric-val { font-family: var(--font-h); font-size: 2rem; font-weight: 900; color: var(--c-text-dark); line-height: 1; }
.metric-lbl { font-family: var(--font-h); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(0,0,0,.6); }

/* ══════════════════════════════════════
   SECCIONES GENERALES
══════════════════════════════════════ */
.section { padding: 3.5rem 0; }
.s-dark  { background: var(--c-bg); }
.s-mid   { background: var(--c-surface); }
.s-light { background: var(--c-panel); color: var(--c-text-dark); }
.s-alt   { background: var(--c-panel-alt); color: var(--c-text-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-h); font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--c-yellow);
  margin-bottom: .5rem;
}
.eyebrow::before { content:""; width:18px; height:2px; background:currentColor; }
.s-light .eyebrow, .s-alt .eyebrow { color: var(--c-yellow-dk); }

.sec-title {
  font-family: var(--font-h); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 3.5rem); line-height: .95; margin-bottom: .75rem;
}
.sec-title em { color: var(--c-yellow); font-style: normal; }
.s-light .sec-title em, .s-alt .sec-title em { color: var(--c-yellow-dk); }
.muted { color: var(--c-muted); font-size: .92rem; }
.s-light .muted, .s-alt .muted { color: #666; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ── Botones ────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .65rem 1.4rem; border: 2px solid transparent;
  font-family: var(--font-h); font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-text-dark); }
.btn-primary:hover { background: #ffe033; border-color: #ffe033; }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--c-text); }
.btn-outline:hover { border-color: var(--c-yellow); color: var(--c-yellow); }
.btn-dark { background: var(--c-surface2); border-color: var(--c-border); color: var(--c-text); }
.btn-dark:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-text-dark); }
.btn-red { background: var(--c-red); border-color: var(--c-red); color:#fff; }
.btn-red:hover { background: var(--c-red-dk); border-color: var(--c-red-dk); }
.btn-wa2 { background: var(--c-wa); border-color: var(--c-wa); color:#fff; }
.btn-wa2:hover { background: #1da851; border-color: #1da851; }
.btn-sm { min-height: 36px; padding: .45rem 1rem; font-size: .7rem; }

/* ══════════════════════════════════════
   GRID CATEGORÍAS — imagen de fondo
══════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px; background: var(--c-border); margin-top: 2rem;
}
.cat-card {
  position: relative; height: 200px; overflow: hidden;
  display: flex; align-items: flex-end;
  text-decoration: none; cursor: pointer;
}
.cat-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--c-surface2);
  transition: transform .35s ease;
}
.cat-card:hover .cat-card-bg { transform: scale(1.07); }
.cat-card::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
}
.cat-card-body { position: relative; z-index:1; padding: 1rem; }
.cat-card-name { font-family: var(--font-h); font-size: .95rem; font-weight: 800; text-transform: uppercase; color:#fff; line-height:1.1; }
.cat-card-sub { font-family: var(--font-h); font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-yellow); margin-top: .2rem; }

/* ══════════════════════════════════════
   SECCIÓN IMAGEN + TEXTO (split)
══════════════════════════════════════ */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img { overflow: hidden; position: relative; min-height: 300px; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(22,22,22,.6) 0%, transparent 60%);
}
.split.reverse .split-img::after { background: linear-gradient(270deg, rgba(22,22,22,.6) 0%, transparent 60%); }
.split-body { padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }

/* ══════════════════════════════════════
   MOSAICO DE IMÁGENES (3 columnas)
══════════════════════════════════════ */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 2rem; }
.mosaic-item { position: relative; overflow: hidden; }
.mosaic-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .35s; display: block; }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item.tall img { height: 443px; } /* 2 filas */

/* ══════════════════════════════════════
   MARCAS GRID
══════════════════════════════════════ */
.brand-logo-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2px; background: var(--c-border-lt); margin-top: 2rem;
}
.brand-logo-card {
  background: var(--c-panel); padding: 1.5rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-align: center; text-decoration: none; transition: background .2s;
  border-bottom: 3px solid transparent;
}
.brand-logo-card:hover { background: var(--c-text-dark); border-bottom-color: var(--c-yellow); }
.brand-logo-pill {
  font-family: var(--font-h); font-size: 1.4rem; font-weight: 900;
  letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-dark);
  transition: color .2s;
}
.brand-logo-card:hover .brand-logo-pill { color: var(--c-yellow); }
.brand-logo-sub { font-family: var(--font-h); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #999; transition: color .2s; }
.brand-logo-card:hover .brand-logo-sub { color: #666; }

/* ══════════════════════════════════════
   MAPA + CONTACTO RÁPIDO
══════════════════════════════════════ */
.map-section { display: grid; grid-template-columns: 1fr 400px; min-height: 380px; }
.map-frame { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.7) contrast(1.1) brightness(.9); }
.map-info { background: var(--c-surface); padding: 2.5rem; display: flex; flex-direction: column; gap: 1.4rem; justify-content: center; }
.map-info-title { font-family: var(--font-h); font-size: 1.6rem; font-weight: 900; text-transform: uppercase; }
.map-info-title em { color: var(--c-yellow); font-style: normal; display: block; }
.contact-row { display: flex; flex-direction: column; gap: .15rem; }
.contact-row-label { font-family: var(--font-h); font-size: .6rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--c-yellow); }
.contact-row-val { font-size: .92rem; color: var(--c-text); }
.contact-row-val a { color: inherit; transition: color .15s; }
.contact-row-val a:hover { color: var(--c-yellow); }

/* ══════════════════════════════════════
   CTA BAND
══════════════════════════════════════ */
.cta-band { background: var(--c-surface); border-top: 3px solid var(--c-yellow); border-bottom: 3px solid var(--c-yellow); padding: 2.5rem 0; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }

/* ══════════════════════════════════════
   PROCESO PASOS
══════════════════════════════════════ */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 2rem; }
.step { padding: 1.8rem; border-right: 1px solid var(--c-border); }
.step:last-child { border-right: 0; }
.step-num { font-family: var(--font-h); font-size: 3rem; font-weight: 900; color: var(--c-yellow); opacity: .25; line-height: 1; margin-bottom: .5rem; }
.step-title { font-family: var(--font-h); font-size: 1rem; font-weight: 800; text-transform: uppercase; margin-bottom: .4rem; }
.step-desc { font-size: .85rem; color: var(--c-muted); line-height: 1.5; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer { background: #050505; border-top: 3px solid var(--c-yellow); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--c-border); margin-bottom: 1.5rem; }
.footer-brand-name { font-family: var(--font-h); font-size: 1.4rem; font-weight: 900; text-transform: uppercase; margin-bottom: .6rem; }
.footer-brand-name span { color: var(--c-yellow); }
.footer-desc { font-size: .83rem; color: var(--c-muted); line-height: 1.6; margin-bottom: .8rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 32px; height: 32px; border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-size: .62rem; font-weight: 800; color: var(--c-muted); transition: background .15s, color .15s, border-color .15s; }
.footer-social a:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-text-dark); }
.footer-col h5 { font-family: var(--font-h); font-size: .65rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--c-yellow); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { font-size: .83rem; color: var(--c-muted); transition: color .15s; }
.footer-col ul li a:hover { color: var(--c-yellow); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-family: var(--font-h); font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }

/* ── WA flotante ────────────────────── */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 300; width: 56px; height: 56px; border-radius: 50%; background: var(--c-wa); color:#fff; display:grid; place-items:center; box-shadow: 0 6px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; }

/* ══════════════════════════════════════
   PÁGINAS INTERNAS
══════════════════════════════════════ */
.page-hero { padding: 3rem 0 2.5rem; background: var(--c-surface); border-bottom: 3px solid var(--c-yellow); position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; right:-5%; top:-30%; width:45%; height:200%; background: repeating-linear-gradient(-60deg, transparent, transparent 8px, rgba(255,214,0,.025) 8px, rgba(255,214,0,.025) 9px); pointer-events:none; }
.page-hero h1 { font-family: var(--font-h); font-size: clamp(2.2rem,5.5vw,5rem); font-weight:900; text-transform:uppercase; line-height:.92; margin: .5rem 0 .8rem; }
.page-hero h1 em { color: var(--c-yellow); font-style:normal; }

/* Filtro catálogo */
.filter-bar { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 1rem 0; position: sticky; top: 120px; z-index: 50; }
.filter-inner { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.filter-label { font-family: var(--font-h); font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); white-space: nowrap; }
.filter-btn { padding: .35rem .8rem; border: 1px solid var(--c-border); background: transparent; color: var(--c-muted); font-family: var(--font-h); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: all .12s; white-space: nowrap; }
.filter-btn:hover { border-color: var(--c-yellow); color: var(--c-yellow); }
.filter-btn.active { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-text-dark); }
.filter-sep { width:1px; height:20px; background: var(--c-border); flex-shrink:0; }
.filter-clear { font-family: var(--font-h); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-red); background:transparent; border:0; text-decoration: underline; margin-left: auto; }
.filter-count { font-family: var(--font-h); font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }

/* Tarjeta de producto */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px; background: var(--c-border); margin-top: 2rem; }
.product-card { background: var(--c-panel); color: var(--c-text-dark); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; position: relative; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index:1; }
.product-img { position: relative; padding-top: 68%; overflow: hidden; background: var(--c-panel-alt); }
.product-img img { position: absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:.8rem; transition: transform .3s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img-ph { position: absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#ccc; font-family: var(--font-h); font-size:.65rem; letter-spacing:.1em; text-transform:uppercase; flex-direction:column; gap:.4rem; }
.badge-sale { position:absolute; top:.5rem; left:.5rem; z-index:2; background: var(--c-red); color:#fff; font-family: var(--font-h); font-size:.6rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; padding:.18rem .45rem; }
.badge-brand-tag { position:absolute; top:.5rem; right:.5rem; z-index:2; background: var(--c-text-dark); color: var(--c-yellow); font-family: var(--font-h); font-size:.58rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; padding:.18rem .45rem; }
.product-body { padding: .9rem 1rem 1.1rem; flex:1; display:flex; flex-direction:column; gap:.3rem; }
.product-cat-tag { font-family: var(--font-h); font-size:.6rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--c-yellow-dk); }
.product-name { font-family: var(--font-h); font-size:.98rem; font-weight:800; text-transform:uppercase; line-height:1.1; }
.product-ref { font-family: var(--font-h); font-size:.6rem; letter-spacing:.1em; color:#888; }
.product-desc { font-size:.8rem; color:#666; flex:1; line-height:1.45; }
.product-price { font-family: var(--font-h); font-size:1.2rem; font-weight:900; margin-top:.3rem; }
.product-price-old { font-size:.88rem; color:#aaa; text-decoration:line-through; }
.product-actions { margin-top:.7rem; display:flex; flex-direction:column; gap:.4rem; }
.product-actions .btn { width:100%; justify-content:center; }

/* FAQ */
.faq-list { display:grid; gap:2px; background: var(--c-border-lt); margin-top:2rem; }
.faq-item { background: var(--c-panel); color: var(--c-text-dark); border-left:3px solid transparent; transition: border-color .2s; }
.faq-item[open] { border-left-color: var(--c-yellow-dk); }
.faq-item summary { padding:1.1rem 1.5rem; cursor:pointer; font-family: var(--font-h); font-size:.98rem; font-weight:800; text-transform:uppercase; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+"; font-family: var(--font-h); color: var(--c-yellow-dk); font-size:1.4rem; flex-shrink:0; }
.faq-item[open] summary::after { content:"−"; }
.faq-answer { padding:0 1.5rem 1.2rem; font-size:.88rem; color:#555; line-height:1.6; }

/* Formulario contacto */
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field { display:grid; gap:.35rem; }
.field.full { grid-column:1/-1; }
.field label { font-family: var(--font-h); font-size:.62rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#666; }
.field input, .field textarea, .field select { width:100%; border:1px solid var(--c-border-lt); background: var(--c-panel); color: var(--c-text-dark); padding:.75rem .9rem; font-size:.93rem; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-yellow-dk); outline:none; }
.field textarea { min-height:130px; resize:vertical; }
.hp-field { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
[data-form-status] { padding:.8rem 1rem; border:1px solid var(--c-border-lt); font-size:.85rem; }
[data-form-status][data-status="success"] { border-color:#2d7a2d; color:#2d7a2d; background:#f0fff0; }
[data-form-status][data-status="error"]   { border-color:#b3261e; color:#b3261e; background:#fff0f0; }

/* Nosotros */
.about-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:3rem; align-items:start; }
.about-img-wrap { position:relative; }
.about-img-wrap img { width:100%; height:400px; object-fit:cover; }
.about-img-wrap::before { content:""; position:absolute; inset:-8px; border:2px solid var(--c-yellow); z-index:-1; }
.value-list { display:grid; gap:1.2rem; margin-top:1.5rem; }
.value-item { display:flex; gap:.9rem; align-items:flex-start; }
.value-icon { width:38px; height:38px; background: var(--c-yellow); color: var(--c-text-dark); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-family: var(--font-h); font-size:.68rem; font-weight:900; }
.value-body h4 { font-family: var(--font-h); font-size:.95rem; font-weight:800; text-transform:uppercase; margin-bottom:.2rem; }
.value-body p { font-size:.83rem; color: var(--c-muted); margin:0; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-logo-grid { grid-template-columns: repeat(4, 1fr); }
  .map-section { grid-template-columns: 1fr; }
  .map-info { padding: 2rem; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .step { border-bottom: 1px solid var(--c-border); }
  .split { grid-template-columns: 1fr; }
  .split-img { min-height: 220px; }
}
@media (max-width: 860px) {
  .header-main-inner { grid-template-columns: auto 1fr auto; gap: .75rem; }
  .btn-wa-header span { display: none; }
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .mega-menu { display: none; }
  .mega-overlay { display: none !important; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-item.tall img { height: 220px; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  .header-main-inner { grid-template-columns: 1fr auto; }
  .search-bar { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .brand-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .mosaic { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { height: clamp(280px, 70vw, 420px); }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
  .brand-logo-grid { grid-template-columns: repeat(2,1fr); }
}

/* ══════════════════════════════════════
   GALERÍA DE MARCAS — nueva v2.1
   Grid editorial con alturas controladas
══════════════════════════════════════ */

/* Grid principal de marcas con fotos */
.brands-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 4px;
  background: var(--c-border);
  margin-top: 2.5rem;
}

.brand-card {
  position: relative;
  overflow: hidden;
  background: var(--c-surface2);
  text-decoration: none;
  display: block;
}

/* Primera card: ocupa 2 columnas y 2 filas — gran focal */
.brand-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.brand-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
  display: block;
}
.brand-card:hover .brand-card-img { transform: scale(1.05); }

/* Overlay degradado */
.brand-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
  transition: opacity .3s;
}
.brand-card:hover::after { opacity: .85; }

/* Etiqueta de marca */
.brand-card-label {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1.2rem 1.4rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.brand-card-name {
  font-family: var(--font-h); font-size: 1.5rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .04em; color: #fff;
  line-height: 1;
}
.brand-card.featured .brand-card-name { font-size: 2.6rem; }
.brand-card-sub {
  font-family: var(--font-h); font-size: .65rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-yellow);
}
.brand-card-cta {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem;
  font-family: var(--font-h); font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-yellow-dk); background: var(--c-yellow);
  padding: .3rem .75rem; width: fit-content;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.brand-card:hover .brand-card-cta { opacity: 1; transform: translateY(0); }

/* Franja de marca adicional (texto/logo sencillo) */
.brands-strip-simple {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2px; background: var(--c-border-lt); margin-top: 4px;
}
/* Con 10 items se auto-extiende a 2 filas */
@media (max-width: 700px) {
  .brands-strip-simple { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .brands-strip-simple { grid-template-columns: repeat(2, 1fr); }
}
.brand-strip-item {
  background: var(--c-surface); padding: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: 1.1rem; font-weight: 900;
  letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted);
  text-decoration: none; transition: background .15s, color .15s;
  min-height: 60px;
}
.brand-strip-item:hover { background: var(--c-yellow); color: var(--c-text-dark); }

/* ══════════════════════════════════════
   FAQ — sección home y página faq.html
══════════════════════════════════════ */

.faq-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--c-border);
  margin-top: 2.5rem;
}

.faq-block {
  background: var(--c-surface);
  border-left: 3px solid transparent;
  transition: border-color .2s, background .2s;
}
.faq-block[open] { border-left-color: var(--c-yellow); background: var(--c-surface2); }
.faq-block summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-h); font-size: .95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em;
  user-select: none;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--c-surface2); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: 1.2rem; color: var(--c-yellow);
  transition: background .15s;
}
.faq-block[open] .faq-block-icon { background: var(--c-yellow); color: var(--c-text-dark); }
.faq-block-body {
  padding: 0 1.5rem 1.4rem;
  font-size: .88rem; color: var(--c-muted); line-height: 1.65;
}
.faq-block-body a { color: var(--c-yellow); text-decoration: underline; }

/* Tabs de FAQ por tema */
.faq-tabs {
  display: flex; gap: 4px; margin-bottom: 0;
  background: var(--c-border);
}
.faq-tab {
  flex: 1; padding: .9rem 1rem; border: 0;
  background: var(--c-surface2); color: var(--c-muted);
  font-family: var(--font-h); font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .15s, color .15s;
  border-bottom: 3px solid transparent;
}
.faq-tab:hover { background: var(--c-surface); color: var(--c-text); }
.faq-tab.active { background: var(--c-surface); color: var(--c-yellow); border-bottom-color: var(--c-yellow); }

.faq-panel { display: none; }
.faq-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--c-border); }

/* Info cards (envíos, garantía) */
.info-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; background: var(--c-border); margin-top: 2.5rem;
}
.info-card {
  background: var(--c-surface); padding: 2rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.info-card-icon {
  width: 44px; height: 44px;
  background: var(--c-yellow); color: var(--c-text-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.info-card-title {
  font-family: var(--font-h); font-size: 1.1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
}
.info-card-desc { font-size: .86rem; color: var(--c-muted); line-height: 1.6; }
.info-card-link {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: auto;
  font-family: var(--font-h); font-size: .65rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-yellow);
}
.info-card-link:hover { text-decoration: underline; }

/* ── Responsive nuevas secciones ─── */
@media (max-width: 1024px) {
  .brands-gallery { grid-template-rows: 200px 200px; }
  .brand-card.featured .brand-card-name { font-size: 2rem; }
  .brands-strip-simple { grid-template-columns: repeat(5, 1fr); }
  .faq-home-grid { grid-template-columns: 1fr; }
  .faq-panel.active { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .brands-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }
  .brand-card.featured { grid-column: span 2; grid-row: span 1; }
  .brands-strip-simple { grid-template-columns: repeat(3, 1fr); }
  .faq-tabs { flex-wrap: wrap; }
  .faq-tab { flex: 1 1 45%; }
  .info-cards { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   BRAND LOGO GRID — logos reales v4
   Grid 5 columnas × 2 filas
   Fondo oscuro, logo a color al hover
══════════════════════════════════════ */
.brand-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  background: var(--c-border);
  margin-top: 2.5rem;
}

.brand-logo-tile {
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.8rem 1.2rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background .2s;
  min-height: 110px;
}

/* Borde amarillo inferior al hover */
.brand-logo-tile::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-yellow);
  transform: scaleX(0);
  transition: transform .2s;
}
.brand-logo-tile:hover { background: var(--c-surface2); }
.brand-logo-tile:hover::after { transform: scaleX(1); }

/* Logo imagen */
.brand-logo-tile img {
  width: 100%;
  max-width: 120px;
  height: 52px;
  object-fit: contain;
  /* Desaturar por defecto, color al hover */
  filter: grayscale(1) brightness(1.8) contrast(.85);
  transition: filter .25s;
  display: block;
}
.brand-logo-tile:hover img {
  filter: none;
}

/* Nombre de la marca debajo */
.brand-logo-tile-name {
  font-family: var(--font-h);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color .2s;
}
.brand-logo-tile:hover .brand-logo-tile-name {
  color: var(--c-yellow);
}

/* Responsive */
@media (max-width: 860px) {
  .brand-logos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .brand-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-logo-tile { min-height: 90px; padding: 1.2rem .8rem; }
}

/* ── Botón carrito en header ────────────────────────
   Reemplaza la burbuja flotante — vive en header-main
─────────────────────────────────────────────────── */
.header-actions {
  display: flex; align-items: center; gap: .6rem; flex-shrink: 0;
}

.header-cart-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: .18rem; padding: .45rem .65rem;
  background: transparent; border: 1px solid var(--c-border);
  color: var(--c-muted); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  min-width: 52px;
}
.header-cart-btn:hover,
.header-cart-btn.has-items { border-color: var(--c-yellow); color: var(--c-yellow); }
.header-cart-btn svg { width: 20px; height: 20px; }

.header-cart-label {
  font-family: var(--font-h); font-size: .55rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1;
}

.header-cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--c-surface2); color: var(--c-muted);
  font-family: var(--font-h); font-size: .6rem; font-weight: 900;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--c-surface);
  transition: background .2s, color .2s;
}
.header-cart-count.has-items {
  background: var(--c-red); color: #fff;
}

/* Bump al agregar */
@keyframes headerCartBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  70%  { transform: scale(.92); }
  100% { transform: scale(1); }
}
.header-cart-btn.bump { animation: headerCartBump .3s ease; }

/* Toast — ahora sale abajo del header */
.cart-toast {
  bottom: auto;
  top: 85px;
  left: auto;
  right: 1.2rem;
}

/* Grid header-main: logo | buscador | acciones | hamburger */
.header-main-inner {
  grid-template-columns: auto 1fr auto auto !important;
}

/* Responsive */
@media (max-width: 860px) {
  .header-cart-label { display: none; }
  .header-cart-btn { min-width: 40px; padding: .45rem .5rem; }
}
@media (max-width: 600px) {
  .header-actions { gap: .4rem; }
  .btn-wa-header span { display: none; }
}

/* ── Carrito en la barra de navegación ──────────────
   Extremo derecho del nav negro (junto a FAQ, Contacto)
─────────────────────────────────────────────────── */
.nav-cart-spacer { flex: 1; }   /* empuja el carrito al extremo derecho */

.nav-cart-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem;
  background: var(--c-yellow); border: 0;
  color: var(--c-text-dark); cursor: pointer;
  font-family: var(--font-h); font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  transition: background .15s; position: relative;
  white-space: nowrap; flex-shrink: 0;
  height: 100%;
}
.nav-cart-btn:hover { background: var(--c-primary-hover, #ffe033); }
.nav-cart-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.nav-cart-label { line-height: 1; }

.nav-cart-count {
  background: var(--c-red); color: #fff;
  font-family: var(--font-h); font-size: .6rem; font-weight: 900;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
  opacity: 0; transition: opacity .2s, transform .2s;
  transform: scale(0);
}
.nav-cart-count.has-items { opacity: 1; transform: scale(1); }

/* Bump al agregar */
@keyframes navCartBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  70%  { transform: scale(.95); }
  100% { transform: scale(1); }
}
.nav-cart-btn.bump { animation: navCartBump .3s ease; }

/* Toast ajustado */
.cart-toast {
  bottom: auto !important;
  top: 115px;
  left: auto !important;
  right: 1.2rem;
}

/* Responsive: ocultar label en tablet, mantener ícono + contador */
@media (max-width: 1024px) { .nav-cart-label { display: none; } }
@media (max-width: 860px)  {
  /* En móvil el nav está oculto — el carrito va en el header-actions */
  .nav-cart-btn { display: none; }
  /* Mostrar versión compacta en header-actions móvil */
  .header-cart-mobile {
    display: flex; align-items: center; gap: .3rem;
    background: var(--c-yellow); border: 0; color: var(--c-text-dark);
    padding: .45rem .6rem; cursor: pointer; position: relative;
  }
  .header-cart-mobile svg { width: 18px; height: 18px; }
  .header-cart-mobile .nav-cart-count {
    position: absolute; top: -5px; right: -5px;
    opacity: 0; transform: scale(0);
  }
  .header-cart-mobile .nav-cart-count.has-items { opacity: 1; transform: scale(1); }
}

/* ── Links en tarjeta de producto ── */
.product-img-link { display: block; text-decoration: none; }
.product-name-link { text-decoration: none; color: inherit; }
.product-name-link:hover .product-name { color: var(--c-yellow-dk); }
