/* ============================================================
   COMPONENTE MODULAR: CUADRÍCULA DE 32 CATEGORÍAS 300x300
   ============================================================ */
/* ============================================================
   FASE 2: SECCION DE CATEGORIAS CUADRADAS 300x300 + BOTON CTA
   ============================================================ */
.precisur-home-categories-section {
  padding: 24px 20px 60px;
  background-color: #f8fafc;
  width: 100%;
}
.precisur-categories-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.precisur-categories-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 28px;
}
.precisur-cat-badge {
  display: inline-block;
  padding: 6px 18px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.precisur-cat-section-title {
  font-size: 34px;
  font-weight: 800;
  color: #0a3d7a;
  margin: 0 0 14px;
  line-height: 1.25;
}
.precisur-cat-section-desc {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   BARRA DE FILTROS REACTIVOS DE CATÁLOGO
   ============================================================ */
.precisur-comerciales-filter-bar,
.precisur-cat-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 32px;
}

.precisur-cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  outline: none;
}

.precisur-cat-filter-btn:hover {
  border-color: #154686;
  color: #154686;
  background: #f8fafc;
}

.precisur-cat-filter-btn.active {
  background: #154686;
  border-color: #154686;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 70, 134, 0.25);
}

.precisur-cat-filter-btn .precisur-filter-count {
  font-size: 12px;
  opacity: 0.85;
}

.precisur-cat-filter-btn.active .precisur-filter-count {
  color: #bbf758;
}

@media (max-width: 768px) {
  .precisur-comerciales-filter-bar,
  .precisur-cat-filter-bar {
    gap: 6px;
    margin-top: 18px;
    margin-bottom: 24px;
  }
  .precisur-cat-filter-btn {
    font-size: 12.5px;
    padding: 6px 14px;
  }
}

/* Grilla Cuadrada Fluida */
.precisur-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Tarjeta de Categoría */
.precisur-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.precisur-cat-card:hover {
  transform: translateY(-5px);
  border-color: #0a3d7a;
  box-shadow: 0 14px 30px rgba(10, 61, 122, 0.12);
}

/* Imagen Cuadrada 300x300 Completa */
.precisur-cat-thumb-wrap {
  width: 300px;
  height: 300px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 auto 18px;
}
.precisur-cat-thumb-wrap img {
  width: 300px;
  height: 300px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important; /* Muestra la balanza completa sin recortar bordes */
  display: block;
  transition: transform 0.35s ease;
}
.precisur-cat-card:hover .precisur-cat-thumb-wrap img {
  transform: scale(1.06);
}

/* Info del Producto */
.precisur-cat-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-grow: 1;
}
.precisur-cat-title {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.precisur-cat-card:hover .precisur-cat-title {
  color: #0a3d7a;
}

/* Capacidad y Medidas en Caja Redondeada (Píldora Oficial) */
.precisur-cat-capacity {
  font-size: 13.5px;
  font-weight: 500;
  color: #0369a1;
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 0 0 16px;
  display: inline-block;
  line-height: 1.45;
  text-align: center;
}
.precisur-cat-capacity strong {
  font-weight: 700;
  color: #0369a1;
}
.precisur-cat-dim-inline {
  display: inline-block;
  margin-left: 2px;
  color: #475569;
}
.precisur-cat-dim-inline strong {
  font-weight: 700;
  color: #1e293b;
}

/* Botón CTA "Ver Modelos" */
.precisur-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0a3d7a 0%, #0d4a94 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(10, 61, 122, 0.22);
  margin-top: auto;
}
.precisur-cat-btn svg {
  transition: transform 0.2s ease;
  stroke: #ffffff;
}
.precisur-cat-card:hover .precisur-cat-btn {
  background: linear-gradient(135deg, #1b8e3c 0%, #22a746 100%);
  box-shadow: 0 6px 16px rgba(27, 142, 60, 0.35);
  transform: translateY(-2px);
}
.precisur-cat-card:hover .precisur-cat-btn svg {
  transform: translateX(4px);
}

/* ============================================================
   RESPONSIVE CONTINUO Y CELULAR CON IMAGEN 300x300 BIEN GRANDE
   ============================================================ */
@media (max-width: 1280px) {
  .precisur-categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .precisur-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .precisur-cat-section-title { font-size: 28px; }
}

/* Celular: Tarjetas amplias centradas con imagen 300x300 bien grande */
@media (max-width: 680px) {
  .precisur-home-categories-section {
    padding: 40px 16px 60px;
  }
  .precisur-categories-grid {
    grid-template-columns: minmax(0, 340px);
    justify-content: center;
    gap: 24px;
  }
  .precisur-cat-card {
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 16px;
  }
  .precisur-cat-thumb-wrap {
    width: 300px;
    height: 300px;
    max-width: 100%;
  }
  .precisur-cat-thumb-wrap img {
    width: 300px;
    height: 300px;
  }
  .precisur-cat-title { font-size: 18px; }
  .precisur-cat-btn { max-width: 100%; }
}



/* ============================================================
   OCULTAMIENTO DE FILAS DUPLICADAS DE ELEMENTOR EN HOME
   (Entre catálogo de 32 categorías y botones Ver Catálogo / Otros Productos)
   ============================================================ */
.home .elementor-element-51b1ad1,
.home .elementor-element-6bb973b,
.home .elementor-element-c78104d,
.home .elementor-element-335b5d1,
.home .elementor-element-7e21b85,
.home .elementor-element-d90c5fd,
.home .elementor-element-c80805c {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Badge superior opcional de tarjeta reutilizable */
.precisur-card-top-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #1b8e3c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
}

/* ============================================================
   SELECTOR CANÓNICO DE SECCIONES (REGLA 14) Y CARGA PROGRESIVA (REGLA 15)
   ============================================================ */
.precisur-catalog-section-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.precisur-section-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(21, 70, 134, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.precisur-section-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21, 115, 62, 0.25);
}
.precisur-load-more-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 40px;
  width: 100%;
}
.precisur-btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(21, 70, 134, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.precisur-btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 115, 62, 0.28);
}
.precisur-load-badge {
  font-size: 13px;
  opacity: 0.9;
}
.precisur-mobile-sentinel {
  height: 20px;
  width: 100%;
}
@media (max-width: 680px) {
  .precisur-catalog-section-nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .precisur-section-nav-btn {
    width: 100%;
    justify-content: center;
  }
  .precisur-btn-load-more {
    width: 100%;
  }
}
