/* Catálogo de Productos — Comercial Amito */
:root {
  --pc-navy:  #1e2d0a;
  --pc-amber: #c9a020;
  --pc-amber2:#e2c040;
  --pc-bg:    #f3f1e9;
}

body {
  padding-top: 80px;
  background: var(--pc-bg);
  font-family: 'Poppins', sans-serif;
}

/* Navbar siempre oscuro */
#mainNav {
  background: #131e07 !important;
  padding: 12px 0 !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.3) !important;
}

/* ── HERO ── */
.pc-hero {
  background: linear-gradient(135deg, #0c1407 0%, #1e2d0a 55%, #2d4a14 100%);
  padding: 56px 20px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(201,160,32,.13) 0%, transparent 62%);
  pointer-events: none;
}
.pc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pc-amber);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pc-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.15;
}
.pc-hero h1 span { color: var(--pc-amber); }
.pc-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 28px;
}

/* Search bar en hero */
.pc-hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.pc-hs-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: .95rem;
  pointer-events: none;
}
.pc-hero-search input {
  width: 100%;
  padding: 14px 50px 14px 46px;
  border-radius: 40px;
  border: none;
  font-size: .96rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.22);
  outline: none;
  background: #fff;
  font-family: 'Poppins', sans-serif;
}
.pc-hero-search input:focus {
  box-shadow: 0 4px 24px rgba(0,0,0,.22), 0 0 0 3px rgba(201,160,32,.35);
}
.pc-hs-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 1rem;
  display: none;
  padding: 4px 6px;
  line-height: 1;
}
.pc-hs-clear.show { display: block; }
.pc-hs-clear:hover { color: #555; }

/* ── TABS DE CATEGORÍA (sticky) ── */
.pc-cat-bar {
  background: #fff;
  border-bottom: 1px solid #e5e1d5;
  position: sticky;
  top: 70px;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(30,45,10,.07);
}
.pc-cat-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.pc-cat-scroll::-webkit-scrollbar { display: none; }
.pc-cat-tab {
  flex-shrink: 0;
  padding: 13px 18px;
  border: none;
  background: none;
  font-size: .86rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}
.pc-cat-tab:hover { color: var(--pc-navy); }
.pc-cat-tab.active {
  color: var(--pc-navy);
  border-bottom-color: var(--pc-amber);
}

/* ── CONTENIDO ── */
.pc-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Meta bar (conteo + reset) */
.pc-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  min-height: 32px;
}
.pc-count {
  font-size: .85rem;
  color: #777;
}
.pc-count strong { color: var(--pc-navy); font-weight: 700; }
.pc-reset {
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 4px 16px;
  font-size: .8rem;
  cursor: pointer;
  color: #666;
  font-family: 'Poppins', sans-serif;
  display: none;
  transition: .15s;
}
.pc-reset:hover { border-color: var(--pc-navy); color: var(--pc-navy); }

/* Grid */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Prod-item hidden */
.prod-item.hidden { display: none; }

/* Cards clickables */
.prod-card {
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(30,45,10,.16);
}
.prod-card:focus-visible {
  outline: 3px solid var(--pc-amber);
  outline-offset: 3px;
}

/* Estado vacío */
.pc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  display: none;
}
.pc-empty.show { display: block; }
.pc-empty i { font-size: 3.5rem; color: #d1cfc4; margin-bottom: 18px; display: block; }
.pc-empty h5 { color: var(--pc-navy); font-weight: 700; margin-bottom: 8px; }
.pc-empty p { color: #888; max-width: 380px; margin: 0 auto 20px; }

/* ── MODAL DE PRODUCTO ── */
.pc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.pc-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.pc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,20,4,.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pc-modal-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  transform: translateY(28px) scale(.97);
  transition: transform .22s;
}
.pc-modal-overlay.open .pc-modal-box {
  transform: translateY(0) scale(1);
}
.pc-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.08);
  cursor: pointer;
  font-size: .95rem;
  color: #444;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.pc-modal-close:hover { background: rgba(0,0,0,.18); }

/* Layout interno del modal */
.pc-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}
.pc-modal-visual {
  border-radius: 18px 0 0 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--pc-navy), #2d4a14);
  min-height: 320px;
}
.pc-modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}
.pc-modal-visual-icon {
  font-size: 4.5rem;
  color: rgba(255,255,255,.3);
}
.pc-modal-info {
  padding: 30px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pc-modal-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-badge-cat {
  background: rgba(30,45,10,.1);
  color: var(--pc-navy);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pc-badge-brand {
  background: rgba(201,160,32,.18);
  color: #7a6000;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}
.pc-modal-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pc-navy);
  line-height: 1.25;
  margin: 0;
}
.pc-modal-desc {
  font-size: .88rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}
.pc-modal-specs { display: flex; flex-wrap: wrap; gap: 7px; }
.pc-spec-tag {
  background: #f3f1e9;
  border: 1px solid #ddd8c8;
  color: #5a5a4a;
  padding: 3px 13px;
  border-radius: 20px;
  font-size: .77rem;
}
.pc-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.pc-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #25d366;
  color: #fff !important;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .93rem;
  text-decoration: none;
  transition: background .15s;
}
.pc-btn-wa:hover { background: #1ebe5d; color: #fff; text-decoration: none; }
.pc-btn-quote {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--pc-navy);
  color: var(--pc-amber) !important;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .93rem;
  text-decoration: none;
  transition: background .15s;
}
.pc-btn-quote:hover { background: #2d4a14; color: var(--pc-amber2) !important; text-decoration: none; }

/* ── FOOTER ── */
.pc-footer {
  background: #131e07;
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 22px 20px;
  font-size: .84rem;
}
.pc-footer a { color: var(--pc-amber); text-decoration: none; }
.pc-footer a:hover { text-decoration: underline; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 991px) {
  .pc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  body         { padding-top: 70px; }
  .pc-cat-bar  { top: 64px; }
  .pc-hero     { padding: 38px 16px 38px; }
  .pc-hero h1  { font-size: 1.75rem; }
  .pc-content  { padding: 24px 14px 48px; }
  .pc-grid     { gap: 16px; }
  /* Modal: stack visual sobre info */
  .pc-modal-inner { grid-template-columns: 1fr; }
  .pc-modal-visual { border-radius: 18px 18px 0 0; min-height: 200px; }
  .pc-modal-visual img { min-height: 200px; }
  .pc-modal-info { padding: 20px; }
  .pc-modal-name { font-size: 1.15rem; }
}

@media (max-width: 560px) {
  body         { padding-top: 66px; }
  .pc-cat-bar  { top: 60px; }
  .pc-hero     { padding: 28px 14px 32px; }
  .pc-hero-eyebrow { display: none; }
  .pc-grid     { grid-template-columns: 1fr; gap: 14px; }
  .pc-hero-search input { font-size: .88rem; padding: 12px 46px 12px 42px; }
  .pc-modal-info { padding: 16px; gap: 10px; }
}

/* ── BANDA DE MARCAS ── */
.pc-brands-band {
  background: #fff;
  border-top: 1px solid #e8e4d8;
  border-bottom: 1px solid #e8e4d8;
  padding: 20px 0 22px;
  overflow: hidden;
}
.pc-brands-label {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #b0a880;
  margin: 0 0 16px;
}
.pc-brands-track-wrap {
  overflow: hidden;
  /* fade in/out en los bordes */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.pc-brands-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: pc-marquee 24s linear infinite;
  will-change: transform;
}
.pc-brands-band:hover .pc-brands-track {
  animation-play-state: paused;
}
@keyframes pc-marquee {
  from { transform: translateX(0); }
  /* translateX de -50% porque el contenido está duplicado N veces */
  to   { transform: translateX(-50%); }
}
.pc-brand-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 110px;
  height: 88px;
  background: #f6f4ee;
  border: 1px solid #e8e4d8;
  border-radius: 12px;
  padding: 10px 10px 8px;
  transition: border-color .2s, box-shadow .2s;
}
.pc-brand-item:hover {
  border-color: var(--pc-amber);
  box-shadow: 0 4px 14px rgba(201,160,32,.18);
}
.pc-brand-item img {
  max-width: 82px;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(15%) brightness(1.02);
  transition: filter .2s;
  flex-shrink: 0;
}
.pc-brand-item:hover img { filter: none; }
.pc-brand-name {
  font-size: .6rem;
  font-weight: 700;
  color: #999;
  text-align: center;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
}
.pc-brand-item:hover .pc-brand-name { color: #7a6000; }

@media (max-width: 560px) {
  .pc-brand-item  { width: 90px; height: 78px; }
  .pc-brand-item img { max-height: 34px; }
  .pc-brand-name  { font-size: .55rem; }
}
