/* ============================================================
   PRODUCTOS CSS
   ============================================================ */
body {
  background-color: #f8f9fa;
}

/* HERO */
.pc-hero {
  padding: 160px 20px 80px;
  text-align: center;
  background: var(--primary-dark, #1f332c);
  color: white;
}
.pc-hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary, #5e9c8e);
  margin-bottom: 10px;
}
.pc-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.pc-hero h1 span {
  color: var(--secondary, #5e9c8e);
}
.pc-hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}
.pc-hero-search {
  max-width: 500px;
  margin: 30px auto 0;
  position: relative;
  display: flex;
  align-items: center;
}
.pc-hs-icon {
  position: absolute;
  left: 20px;
  color: #888;
}
.pc-hero-search input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  outline: none;
}
.pc-hs-clear {
  position: absolute;
  right: 15px;
  background: #eee;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
}

/* CATEGORY BAR */
.pc-cat-bar {
  background: white;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 70px;
  z-index: 100;
}
.pc-cat-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 5px;
}
.pc-cat-scroll::-webkit-scrollbar {
  height: 4px;
}
.pc-cat-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.pc-cat-tab {
  background: #f4f4f4;
  border: none;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}
.pc-cat-tab:hover {
  background: #e4e4e4;
}
.pc-cat-tab.active {
  background: var(--primary, #476b60);
  color: white;
}

/* CONTENT */
.pc-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* META BAR */
.pc-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}
.pc-count {
  font-weight: 600;
  color: #444;
}
.pc-reset {
  background: none;
  border: none;
  color: var(--primary, #476b60);
  font-weight: 500;
  cursor: pointer;
}

/* GRID */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.prod-item {
  transition: transform 0.3s;
}
.prod-item:hover {
  transform: translateY(-5px);
}
.prod-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.prod-visual {
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pv1, #1e2d0a), var(--pv2, #2d4415));
  overflow: hidden;
}
.prod-visual-img {
  background: #f9f9f9;
}
.prod-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
}
.pv-circles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%);
  background-size: 20px 20px;
}
.prod-vi {
  font-size: 4rem;
  color: rgba(255,255,255,0.2);
}
.pv-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary, #5e9c8e);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* BODY */
.prod-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.prod-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.prod-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.prod-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.prod-meta {
  font-size: 0.85rem;
  color: #777;
  background: #f4f4f4;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 15px;
}
.prod-btn {
  background: var(--primary, #476b60);
  color: white;
  width: 100%;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px;
}

/* EMPTY STATE */
.pc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  display: none;
}
.pc-empty.show {
  display: block;
}
.pc-empty i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 15px;
}

/* ── BANDA DE MARCAS ── */
.pc-brands-band {
  background: white;
  padding: 40px 0;
  border-top: 1px solid #eaeaea;
  text-align: center;
  overflow: hidden;
}
.pc-brands-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.pc-brands-track-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.pc-brands-track {
  display: flex;
  width: fit-content;
  animation: scrollBrands 20s linear infinite;
}
.pc-brands-track:hover {
  animation-play-state: paused;
}
.pc-brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  margin: 0 30px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.pc-brand-item:hover {
  opacity: 1;
}
.pc-brand-item img {
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}
.pc-brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}
@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* FOOTER */
.pc-footer {
  text-align: center;
  padding: 30px;
  background: white;
  border-top: 1px solid #eaeaea;
  margin-top: 40px;
}
.pc-footer p {
  margin: 0;
  color: #666;
}
.pc-footer a {
  color: var(--primary, #476b60);
  text-decoration: none;
  font-weight: 500;
}
.pc-footer a:hover {
  text-decoration: underline;
}

/* ── MODAL DE PRODUCTO ── */
.pc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.pc-modal-overlay.open {
  display: flex;
}
.pc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.pc-modal-box {
  position: relative;
  background: white;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 16px;
  z-index: 2010;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.pc-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
  z-index: 2020;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.pc-modal-close:hover {
  background: white;
  color: #333;
  transform: scale(1.1);
}
.pc-modal-inner {
  display: flex;
  flex-direction: row;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .pc-modal-inner {
    flex-direction: column;
  }
}
.pc-modal-visual {
  flex: 1;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 250px;
}
.pc-modal-visual img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
}
.pc-modal-visual-icon {
  font-size: 6rem;
  color: #ddd;
}
.pc-modal-info {
  flex: 1;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
}
.pc-modal-badges {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}
.pc-badge-cat {
  background: #f0f0f0;
  color: #555;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}
.pc-badge-brand {
  background: var(--secondary, #5e9c8e);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.pc-modal-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}
.pc-modal-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}
.pc-modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.pc-spec-tag {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #495057;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
.pc-modal-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pc-btn-wa, .pc-btn-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
}
.pc-btn-wa {
  background: #25d366;
  color: white;
}
.pc-btn-wa:hover {
  background: #1ebc5a;
  color: white;
  transform: translateY(-2px);
}
.pc-btn-quote {
  background: white;
  color: var(--primary, #476b60);
  border: 2px solid var(--primary, #476b60);
}
.pc-btn-quote:hover {
  background: var(--primary, #476b60);
  color: white;
}
