/* =========================================
   Buscador Premium
========================================= */
.productos-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1.1rem;
}

#buscadorProductos {
  width: 100%;
  padding: 14px 20px 14px 45px;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  outline: none;
}

#buscadorProductos:focus {
  border-color: #007bff; /* Or whatever primary color */
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.15);
}

.no-results-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #666;
  text-align: center;
  gap: 1rem;
}

.no-results-msg i {
  font-size: 3rem;
  color: #ccc;
}

.no-results-msg p {
  font-size: 1.2rem;
  margin: 0;
  font-family: 'Manrope', sans-serif;
}

/* =========================================
   Modal de Producto Premium
========================================= */
.modal-producto-premium {
  width: 90%;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  background: #fff;
  position: relative;
  opacity: 0;
  animation: modalEntrada 0.4s ease-out forwards;
}

@keyframes modalEntrada {
  0% { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.modal-producto-layout-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.modal-producto-imgbox-premium {
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.modal-producto-imgbox-premium img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.modal-producto-imgbox-premium:hover img {
  transform: scale(1.05);
}

.modal-producto-info-premium {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-categoria-premium {
  display: inline-block;
  background: #0160ce;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.ficha-nombre-premium {
  font-size: 2.2rem;
  font-weight: 800;
  color: #212529;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.ficha-divider {
  height: 3px;
  width: 50px;
  background: #0160ce; /* Blue color */
  margin-bottom: 1.5rem;
}

.ficha-descripcion-premium {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.ficha-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.btn-consultar-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0160ce 0%, #004ba0 100%);
  color: #fff;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 8px 15px rgba(1, 96, 206, 0.3);
  transition: all 0.3s ease;
}

.btn-consultar-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(1, 96, 206, 0.4);
  color: #fff;
}

.btn-consultar-premium i {
  font-size: 1.3rem;
}

/* =========================================
   Modal Promo (Publicidad)
========================================= */
.promo-bg {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

.modal-promo-content {
  width: 90%;
  max-width: 800px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1000;
  opacity: 0;
  animation: promoEntrada 0.5s ease-out forwards;
}

@keyframes promoEntrada {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.promo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.promo-text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.promo-text h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #d92525;
  margin-top: 0;
  margin-bottom: 1rem;
}

.promo-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.btn-promo-ws {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0160ce;
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-promo-ws:hover {
  background: #004ba0;
  transform: translateY(-2px);
  color: #fff;
}

.promo-image {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.5s ease;
}

.promo-image:hover img {
  transform: scale(1.1);
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 768px) {
  .modal-producto-layout-premium {
    grid-template-columns: 1fr;
  }
  
  .modal-producto-imgbox-premium {
    padding: 1.5rem;
    max-height: 250px;
  }
  
  .modal-producto-imgbox-premium img {
    max-height: 200px;
  }

  .modal-producto-info-premium {
    padding: 1.5rem;
  }

  .ficha-nombre-premium {
    font-size: 1.4rem;
  }

  .promo-banner {
    grid-template-columns: 1fr;
  }
  
  .promo-image {
    display: none; /* Hide image on mobile to save space */
  }
  
  .promo-text {
    padding: 2rem;
  }
}
