body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #050814;
  color: #fff;
}

.catalogo-wrapper {
  width: 100%;
  min-height: 100vh;
}

.catalogo-wrapper .topbar {
  background: linear-gradient(90deg, #071a2f, #0a3d62) !important;
  padding: 28px 16px;
  text-align: center;
  border-bottom: 2px solid rgba(0, 194, 255, .25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .4);
}

.catalogo-wrapper .topbar h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #eaf6ff !important;
}

#searchInput {
  margin-top: 14px;
  width: min(650px, 80%);
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 194, 255, .25);
  background: #0c1426;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#searchInput::placeholder {
  color: #7d93a6;
}

/* Efecto focus para que resalte al hacer clic en buscar */
#searchInput:focus {
  border-color: #00c2ff;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.card {
  background: #0c1426;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box; /* Asegura que padding no altere el tamaño fijado */
}

.card:hover {
  transform: translateY(-5px);
  border-color: #00c2ff;
  box-shadow: 0 12px 28px rgba(0, 194, 255, .15);
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
  padding: 16px;
  display: block;
  box-sizing: border-box;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  margin: 0;
  min-height: 48px;
  font-size: 18px;
  color: #00c2ff;
  line-height: 1.35;
  /* Corta el texto si el título es demasiado largo de forma elegante */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card p {
  margin: 12px 0 0;
  min-height: 60px;
  font-size: 14px;
  line-height: 1.5;
  color: #d6dde7;
  flex: 1;
}

.card-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.price {
  font-size: 22px;
  font-weight: 700;
  color: #00ff9d;
  margin-bottom: 14px;
}

.btn-whatsapp {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #25D366;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s;
  box-sizing: border-box;
}

.btn-whatsapp:hover {
  background: #1faa59;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 16px;
    gap: 16px;
  }
  
  .product-img {
    height: 180px;
  }
  
  .catalogo-wrapper .topbar h1 {
    font-size: 24px;
  }
}
/* =========================================================
   PAGINACIÓN (INTEGRACIÓN CON LA ESTÉTICA DE LEVATECH)
========================================================= */
.paginacion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px auto;
    padding: 0 24px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

.btn-pag {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0, 194, 255, .25);
    background: #0c1426;
    color: #d6dde7;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}

/* Efecto Hover para los botones interactivos */
.btn-pag:hover:not([disabled]) {
    border-color: #00c2ff;
    background: #111f38;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.25);
}

/* Estado del botón de la página donde se encuentra actualmente el cliente */
.btn-pag.active {
    background: linear-gradient(90deg, #071a2f, #0a3d62);
    color: #00c2ff;
    border-color: #00c2ff;
    box-shadow: 0 4px 15px rgba(0, 194, 255, .2);
    cursor: default;
}

/* Estado para los botones deshabilitados (como "Ant" cuando estás en la página 1) */
.btn-pag[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, .06);
    background: #0c1426;
    color: #7d93a6;
}

/* =========================================================
   PAGINACIÓN RESPONSIVA (MÓVILES)
========================================================= */
@media (max-width: 768px) {
    .paginacion-container {
        gap: 6px;
        margin: 25px auto;
        padding: 0 16px;
    }

    .btn-pag {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
}