/* ==========================================================================
   CIRAL - Catálogo Industrial Styles
   Paleta corporativa: #02111e (Azul marino CIRAL), #fa5f0b (Naranja CIRAL)
   ========================================================================== */

.catalog-section-area {
  position: relative;
  background-color: #f8fafc;
  padding-top: 70px;
  padding-bottom: 90px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

/* Decoración de fondo sutil */
.catalog-section-area::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(250, 95, 11, 0.03) 0%, rgba(2, 17, 30, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.catalog-section-area .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Barra Lateral de Categorías
   ========================================================================== */
.catalog-sidebar {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(2, 17, 30, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
}

.catalog-sidebar:hover {
  box-shadow: 0 8px 30px rgba(2, 17, 30, 0.09);
}

.catalog-sidebar-header {
  background: linear-gradient(135deg, #02111e 0%, #0a1f38 100%);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #fa5f0b;
}

.catalog-sidebar-header h3 {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0;
}

.catalog-badge-total {
  background: rgba(250, 95, 11, 0.25);
  color: #fa5f0b;
  border: 1px solid rgba(250, 95, 11, 0.4);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  min-width: 28px;
  text-align: center;
  display: inline-block;
  line-height: 1.2;
}

.catalog-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.catalog-category-item:last-child {
  border-bottom: none;
}

.catalog-category-item:hover {
  background-color: #f8fafc;
  padding-left: 24px;
}

.catalog-category-item:hover .cat-name {
  color: #fa5f0b;
}

.catalog-category-item:hover .cat-plus {
  background-color: #fa5f0b;
  color: #ffffff;
  border-color: #fa5f0b;
  transform: rotate(90deg);
}

.catalog-category-item .cat-name {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  transition: color 0.2s ease;
  margin: 0;
}

.cat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 30px;
  text-align: center;
  display: inline-block;
  transition: all 0.2s ease;
}

.catalog-category-item:hover .cat-count {
  background: rgba(250, 95, 11, 0.1);
  color: #fa5f0b;
}

.catalog-category-item.active {
  background-color: #f1f5f9;
  padding-left: 24px;
  border-left: 4px solid #fa5f0b;
}

.catalog-category-item.active .cat-name {
  color: #fa5f0b;
  font-weight: 700;
}

.catalog-category-item.active .cat-plus {
  background-color: #fa5f0b;
  color: #ffffff;
  border-color: #fa5f0b;
  transform: rotate(45deg);
}

.cat-plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-item-col {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.catalog-sidebar-footer {
  background: linear-gradient(135deg, #02111e 0%, #0a1f38 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-sidebar-footer .filtros-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.btn-reset-filtros {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-reset-filtros:hover {
  background: #fa5f0b;
  border-color: #fa5f0b;
  color: #ffffff;
}

/* ==========================================================================
   Banner Superior del Catálogo
   ========================================================================== */
.catalog-banner-card {
  position: relative;
  background-color: #02111e;
  background-image: url('../img/catalogo/catalog_banner.jpg');
  background-size: cover;
  background-position: center right;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(2, 17, 30, 0.12);
  border: 1px solid rgba(2, 17, 30, 0.1);
}

/* Franja decorativa vertical en el extremo izquierdo */
.catalog-banner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #fa5f0b 0%, #00b4d8 100%);
  z-index: 3;
}

.catalog-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(2, 17, 30, 0.94) 0%, rgba(2, 17, 30, 0.82) 48%, rgba(2, 17, 30, 0.65) 100%);
  z-index: 1;
}

.catalog-banner-content {
  position: relative;
  z-index: 2;
  padding: 24px 30px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-banner-left {
  max-width: 480px;
}

.catalog-tag {
  color: #fa5f0b;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.catalog-banner-title {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.catalog-banner-right {
  max-width: 340px;
}

.catalog-banner-desc {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
}

/* ==========================================================================
   Tarjetas de Productos del Catálogo
   ========================================================================== */
.catalog-product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 14px rgba(2, 17, 30, 0.04);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s ease;
  user-select: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.catalog-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(2, 17, 30, 0.1);
  border-color: #fa5f0b;
}

.catalog-card-thumb {
  width: 100%;
  height: 165px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
}

.catalog-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.catalog-product-card:hover .catalog-card-thumb img {
  transform: scale(1.05);
}

.catalog-stock-badge-corner {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.catalog-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.catalog-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.catalog-product-card:hover .catalog-card-title {
  color: #fa5f0b;
}

.catalog-card-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.catalog-card-action {
  font-size: 12.5px;
  font-weight: 600;
  color: #fa5f0b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.catalog-product-card:hover .catalog-card-action {
  gap: 8px;
}

/* ==========================================================================
   Estado Vacío y Filtros sin Resultados
   ========================================================================== */
.catalog-empty-state-box {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 45px 25px;
  text-align: center;
  margin: 15px 0 25px;
}

.catalog-empty-state-box .empty-icon {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.catalog-empty-state-box h4 {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.catalog-empty-state-box p {
  color: #64748b;
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto 16px;
  line-height: 1.55;
}

.btn-reset-filtros-inline {
  background: #02111e;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-filtros-inline:hover {
  background: #fa5f0b;
  color: #ffffff;
}

/* ==========================================================================
   Paginación del Catálogo
   ========================================================================== */
.catalog-pagination-wrap {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.catalog-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(2, 17, 30, 0.05);
  border: 1px solid #e2e8f0;
}

.catalog-page-arrow {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #02111e;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog-page-arrow:hover:not(:disabled) {
  background: #fa5f0b;
  border-color: #fa5f0b;
  color: #ffffff;
}

.catalog-page-arrow:disabled,
.catalog-page-arrow.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.catalog-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-page-num {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog-page-num:hover {
  background: #fff3ec;
  color: #fa5f0b;
}

.catalog-page-num.active {
  background: #fa5f0b;
  border-color: #fa5f0b;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(250, 95, 11, 0.3);
}

/* ==========================================================================
   Modal Emergente de Producto
   ========================================================================== */
.catalog-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 17, 30, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.catalog-modal-container {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(2, 17, 30, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-modal-overlay.show .catalog-modal-container {
  transform: translateY(0) scale(1);
}

.catalog-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.catalog-modal-close:hover {
  background: #fa5f0b;
  border-color: #fa5f0b;
  color: #ffffff;
  transform: rotate(90deg);
}

.catalog-modal-body {
  padding: 34px;
}

.catalog-modal-image-box {
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
}

.catalog-modal-image-box img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.modal-stock-indicator {
  margin-top: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.badge-stock-yes {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-stock-no {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-modal-details {
  display: flex;
  flex-direction: column;
}

.modal-cat-tag {
  color: #fa5f0b;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.modal-prod-title {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #02111e;
  margin-bottom: 4px;
  line-height: 1.25;
}

.modal-prod-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 500;
}

.modal-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 14px 0;
}

.modal-desc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.modal-prod-description {
  font-size: 14px;
  color: #334155;
  line-height: 1.65;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 8px;
}

.modal-prod-description strong,
.modal-prod-description b {
  font-weight: 700;
  color: #0f172a;
}

.modal-prod-description em,
.modal-prod-description i {
  font-style: italic;
}

.modal-prod-description ul {
  padding-left: 20px;
  margin: 8px 0;
}

.modal-prod-description li {
  margin-bottom: 4px;
}

.modal-cta-wrap {
  margin-top: 22px;
}

.btn-modal-whatsapp {
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-modal-whatsapp:hover {
  background: #1eb857;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.btn-modal-whatsapp i {
  font-size: 22px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
  .catalog-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .catalog-banner-right {
    max-width: 100%;
  }

  .catalog-banner-title {
    font-size: 24px;
  }
}

@media (max-width: 767.98px) {
  .catalog-section-area {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .catalog-product-card {
    padding: 14px;
  }

  .catalog-card-thumb {
    height: 140px;
  }

  .catalog-card-title {
    font-size: 15px;
  }

  .catalog-card-subtitle {
    font-size: 12.5px;
  }

  .catalog-modal-body {
    padding: 24px 18px;
  }

  .catalog-modal-image-box {
    min-height: 200px;
    padding: 14px;
  }

  .modal-prod-title {
    font-size: 20px;
  }

  .btn-modal-whatsapp {
    width: 100%;
  }
}

