/* =========================================================
   CATALOGO.CSS - SISTEMAS DE NICARAGUA
   ========================================================= */

/* =========================================
   01. FONDO GLOBAL
   ========================================= */
   body {
    background:
      linear-gradient(rgba(241, 245, 249, 0.70), rgba(241, 245, 249, 0.70)),
      url('../img/fondos/ejemplo.jpeg') no-repeat center top fixed !important;
    background-size: cover !important;
    color: var(--text);
  }
  
  /* =========================================
     02. CABECERA DE CONTENIDO
     ========================================= */
  .section .h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
  }
  
  #resultCount {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    font-weight: 600;
  }
  
  /* =========================================
     03. TOOLBAR (BUSCADOR Y FILTROS)
     ========================================= */
  .toolbar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
  }
  
  .search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
  }
  
  .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
  }
  
  .search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8fafc;
    color: var(--navy);
    font-size: 0.95rem;
  }
  
  .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
  }
  
  .filters-box {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .filters-box select {
    padding: 10px 35px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f8fafc;
    color: var(--navy);
    font-weight: 600;
    outline: none;
    cursor: pointer;
  }
  
  .filters-box select:focus {
    border-color: var(--accent);
    background: white;
  }
  
  /* =========================================
     04. GRID DE PRODUCTOS
     ========================================= */
  .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  /* =========================================
     05. TARJETAS DE PRODUCTO
     ========================================= */
  .prod-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .prod-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  
  .prod-img {
    height: 220px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .prod-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
  }
  
  .prod-card:hover .prod-img img {
    transform: scale(1.08);
  }
  
  .prod-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .prod-body small {
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 5px;
  }
  
  .prod-body h3 {
    color: var(--navy);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    flex-grow: 1;
  }
  
  .prod-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 15px;
  }
  
  .btn-prod {
    width: 100%;
    padding: 12px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: background 0.2s;
  }
  
  .btn-prod:hover {
    background: var(--accent);
  }
  
  /* =========================================
     06. RESPONSIVE
     ========================================= */
  @media (max-width: 768px) {
    .toolbar {
      flex-direction: column;
      align-items: stretch;
    }
  
    .filters-box {
      flex-direction: column;
    }
  
    .filters-box select {
      width: 100%;
    }
  }