/* ============================================================
   CONSULTORES PB — Sistema de diseño del catálogo
   ------------------------------------------------------------
   Estilo limpio tipo distribuidor (referencia: MSC Direct,
   Drills & Cutters, MRM Tool) con la identidad PB (navy + ámbar).

   👉 Normalmente NO necesitas tocar este archivo.
      El contenido (textos, productos, imágenes) se edita
      directamente en los archivos .html, no aquí.
   ============================================================ */

:root {
  /* Marca Consultores PB */
  --navy:        #0F1923;
  --navy-2:      #16273a;
  --navy-3:      #1f3850;
  --amber:       #D4952A;
  --amber-dark:  #b87d1f;
  --amber-soft:  #fbf3e3;

  /* Neutros (look claro) */
  --ink:    #16202b;   /* texto principal */
  --body:   #3a4654;   /* texto de párrafo */
  --muted:  #6b7785;   /* texto secundario */
  --line:   #e3e7ec;   /* bordes */
  --line-2: #eef1f4;   /* bordes suaves / fondos */
  --bg:     #ffffff;
  --bg-2:   #f6f8fa;   /* fondo de secciones */
  --bg-3:   #f0f3f6;

  --ok:     #16794a;

  --radius:   10px;
  --radius-sm: 7px;
  --shadow:   0 1px 2px rgba(16,32,43,.04), 0 8px 24px rgba(16,32,43,.06);
  --shadow-lg:0 12px 40px rgba(16,32,43,.12);

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 15px; }
::selection { background: var(--amber); color: var(--navy); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─────────────── BOTONES ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; line-height: 1;
  padding: 12px 20px; border-radius: var(--radius-sm);
  transition: .18s ease; white-space: nowrap; cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1da851; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ─────────────── TOP BAR ─────────────── */
.topbar { background: var(--navy); color: #c4cdd6; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-left a, .topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left svg { width: 13px; height: 13px; color: var(--amber); }
.topbar-left a:hover { color: #fff; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-right a:hover { color: var(--amber); }

/* ─────────────── HEADER ─────────────── */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; }
.brand-txt strong { display: block; font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; line-height: 1; }
.brand-txt span { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

/* Buscador */
.search { flex: 1; max-width: 620px; position: relative; }
.search input {
  width: 100%; height: 46px; padding: 0 50px 0 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink); transition: .15s;
}
.search input:focus { outline: none; border-color: var(--amber); background: #fff; }
.search button {
  position: absolute; right: 5px; top: 5px; width: 36px; height: 36px;
  background: var(--navy); border-radius: 6px; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.search button:hover { background: var(--amber); color: var(--navy); }
.search button svg { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* ─────────────── NAV PRINCIPAL ─────────────── */
.nav { background: var(--navy); }
.nav .container { display: flex; align-items: stretch; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 7px; padding: 14px 18px;
  color: #d4dbe2; font-size: 14px; font-weight: 500; position: relative;
  border-bottom: 3px solid transparent; transition: .15s;
}
.nav a svg { width: 15px; height: 15px; color: var(--amber); }
.nav a:hover, .nav a.active { color: #fff; border-bottom-color: var(--amber); background: rgba(255,255,255,.04); }
.nav-cta { margin-left: auto; }
.nav-cta a { color: var(--amber); font-weight: 700; }

.nav-toggle { display: none; }

/* ─────────────── HERO ─────────────── */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--navy) 38%, rgba(15,25,35,.78) 60%, rgba(15,25,35,.35));
}
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 2; padding: 78px 24px; }
.hero-inner { max-width: 620px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); margin-bottom: 18px;
}
.hero h1 { font-size: 46px; line-height: 1.06; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.hero p { font-size: 17px; color: #c4cdd6; margin-bottom: 30px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─────────────── TIRA DE CONFIANZA ─────────────── */
.trust { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.trust .container { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 18px 24px; }
.trust-item { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--body); font-weight: 500; }
.trust-item svg { width: 24px; height: 24px; color: var(--amber); flex-shrink: 0; }
.trust-item strong { color: var(--ink); }

/* ─────────────── SECCIONES ─────────────── */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head .kicker { color: var(--amber); font-weight: 700; font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); margin: 8px 0 10px; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; }
.link-more { color: var(--navy); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.link-more:hover { color: var(--amber); }

/* ─────────────── GRILLA DE CATEGORÍAS ─────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card-img { aspect-ratio: 4/3; background: var(--bg-3); overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-body { padding: 16px 18px 18px; }
.cat-card-body h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cat-card-body span { font-size: 13px; color: var(--muted); }
.cat-card-body .go { margin-top: 10px; color: var(--amber-dark); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }

/* ─────────────── TARJETA DE PRODUCTO ─────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s ease;
}
.prod-card:hover { box-shadow: var(--shadow-lg); border-color: var(--amber); }
.prod-card-img { position: relative; aspect-ratio: 1/1; background: #fff; overflow: hidden; padding: 16px; }
/* Fotos de producto en "contain": se ve el producto completo, sin recortes. */
.prod-card-img img { width: 100%; height: 100%; object-fit: contain; transition: .35s; }
.prod-card:hover .prod-card-img img { transform: scale(1.04); }
.prod-tag {
  position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
}
.prod-tag.amber { background: var(--amber); color: var(--navy); }
.prod-card-body { padding: 4px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--amber-dark); }
.prod-card-body h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 4px 0 8px; line-height: 1.35; }
.prod-card-body h3 a:hover { color: var(--amber-dark); }
.prod-sku { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.prod-specs { list-style: none; font-size: 12.5px; color: var(--body); margin-bottom: 14px; display: grid; gap: 4px; }
.prod-specs li { display: flex; gap: 7px; }
.prod-specs li::before { content: "›"; color: var(--amber); font-weight: 700; }
.prod-card-foot { margin-top: auto; display: flex; gap: 8px; }
.prod-card-foot .btn { flex: 1; padding: 11px 10px; font-size: 13px; }

/* ─────────────── BREADCRUMB ─────────────── */
.crumb { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.crumb .container { display: flex; gap: 8px; align-items: center; padding: 13px 24px; font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--amber-dark); }
.crumb .sep { color: var(--line); }
.crumb .here { color: var(--ink); font-weight: 600; }

/* ─────────────── LAYOUT CATEGORÍA (filtros + grilla) ─────────────── */
.shop { display: grid; grid-template-columns: 268px 1fr; gap: 36px; padding: 40px 0 72px; }
.filters { align-self: start; position: sticky; top: 100px; }
.filter-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.filter-block h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--ink); margin-bottom: 14px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--body); cursor: pointer; }
.filter-opt input { width: 16px; height: 16px; accent-color: var(--amber); }
.filter-opt:hover { color: var(--ink); }
.filter-opt .count { margin-left: auto; font-size: 12px; color: var(--muted); }

.shop-main-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 14px; }
.shop-main-head h1 { font-size: 26px; font-weight: 800; color: var(--ink); }
.shop-main-head .result-count { font-size: 13px; color: var(--muted); font-weight: 400; }
.shop-sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.shop-sort select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }

/* ─────────────── FICHA DE PRODUCTO ─────────────── */
.product { padding: 40px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.gallery .main-img {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  aspect-ratio: 1/1; padding: 32px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs button {
  width: 76px; height: 76px; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 8px; background: #fff; transition: .15s;
}
.thumbs button.active, .thumbs button:hover { border-color: var(--amber); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pd-brand { color: var(--amber-dark); font-weight: 700; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.pd-title { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); margin: 8px 0 12px; line-height: 1.15; }
.pd-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.pd-meta strong { color: var(--ink); }
.pd-lead { font-size: 15.5px; color: var(--body); margin-bottom: 22px; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table tr:nth-child(even) { background: var(--bg-2); }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; }
.spec-table td { color: var(--ink); font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.pd-quote { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.pd-quote p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.pd-quote .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-quote .btn-row .btn { flex: 1; min-width: 160px; }

.pd-feats { list-style: none; display: grid; gap: 10px; }
.pd-feats li { display: flex; gap: 11px; font-size: 14px; color: var(--body); }
.pd-feats svg { width: 19px; height: 19px; color: var(--ok); flex-shrink: 0; margin-top: 1px; }

/* Bloque de aplicaciones / pestañas inferiores */
.pd-sections { padding: 16px 0 64px; }
.pd-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 28px; }
.pd-tab { padding: 13px 22px; font-weight: 700; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.pd-tab.active { color: var(--ink); border-bottom-color: var(--amber); }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.app-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.app-card svg { width: 26px; height: 26px; color: var(--amber); flex-shrink: 0; }
.app-card h4 { font-size: 15px; margin-bottom: 3px; color: var(--ink); }
.app-card p { font-size: 13.5px; color: var(--muted); }

/* ─────────────── FORMULARIO COTIZAR ─────────────── */
.quote-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 44px; padding: 44px 0 72px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 7px;
  background: var(--bg-2); color: var(--ink); transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }

.quote-aside { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; }
.quote-aside h3 { font-size: 18px; margin-bottom: 8px; }
.quote-aside p { font-size: 13.5px; color: #b6c0c9; margin-bottom: 22px; }
.quote-aside . qline { }
.quote-item { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.quote-item svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; }
.quote-item strong { display: block; font-size: 14px; }
.quote-item span { font-size: 13px; color: #b6c0c9; }
.quote-product {
  display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 12px; margin-bottom: 22px;
}
.quote-product img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px; }
.quote-product strong { font-size: 14px; display: block; }
.quote-product span { font-size: 12px; color: #b6c0c9; }

/* ─────────────── CTA FRANJA ─────────────── */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 48px 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.cta-band p { color: #b6c0c9; margin-top: 6px; }
.cta-band .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─────────────── MARCAS ─────────────── */
.brands { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.brand-chip {
  display: flex; align-items: center; justify-content: center; height: 64px; min-width: 150px;
  padding: 0 28px; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 800; font-size: 17px; color: var(--navy-3); letter-spacing: .5px;
}

/* ─────────────── FOOTER ─────────────── */
.footer { background: var(--navy); color: #aeb8c1; padding: 56px 0 0; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 40px; }
.footer .brand-txt strong { color: #fff; }
.footer .brand-txt span { color: var(--amber); }
.footer .brand img { width: 46px; height: 46px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a:hover { color: var(--amber); }
.footer-intro { font-size: 13.5px; line-height: 1.6; margin: 16px 0 18px; max-width: 300px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--amber); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #7d8893; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--amber); color: var(--navy); }
.footer-social svg { width: 15px; height: 15px; }

/* ─────────────── WHATSAPP FLOTANTE ─────────────── */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 1080px) {
  .cat-grid, .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .product { grid-template-columns: 1fr; gap: 30px; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .quote-wrap { grid-template-columns: 1fr; }
  .topbar-left .hide-sm { display: none; }
}
@media (max-width: 760px) {
  .header .container { height: 70px; gap: 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header { padding-bottom: 12px; }
  .header .container { flex-wrap: wrap; height: auto; padding-top: 12px; }
  .cat-grid, .prod-grid, .prod-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .app-grid, .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .section { padding: 48px 0; }
  .nav .container { overflow-x: auto; }
  .nav-cta { display: none; }
  .section-head.row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .cat-grid, .prod-grid, .prod-grid.cols-3 { grid-template-columns: 1fr; }
}
