/* ==========================================
   SECCIÓN DE PRODUCTOS DESTACADOS
   ========================================== */

.featured-products-section {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 10px auto; /* Reducido el margen inferior para pegarlo al Trust Banner */
  padding: 0 20px;
  box-sizing: border-box;
}

.featured-products-container {
  width: 100%;
  position: relative;
  /* Espacio interno a los lados para que las flechas respiren sin pisar la tarjeta */
  padding: 10px 30px; 
  box-sizing: border-box;
}

/* Encabezado */
.section-header-centered {
  text-align: center;
  margin-bottom: 25px;
}

.section-top-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.section-title .text-blue {
  color: #0284c7;
}

/* ==========================================
   CONTROL DE ALTURA EN SWIPER Y TARJETAS
   ========================================== */

/* Forzar que Swiper no ocupe más alto de lo necesario */
.featured-products-slider {
  width: 100%;
  height: auto !important;
  padding-bottom: 15px !important; /* Espacio mínimo para la sombra */
}

.featured-products-slider .swiper-wrapper {
  height: auto !important;
  align-items: stretch;
}

.featured-products-slider .swiper-slide {
  height: auto !important;
  display: flex;
  justify-content: center;
}

/* Tarjeta compacta y fija */
.product-card {
  width: 100%;
  height: 380px; /* Reducido un poco para mayor compacidad */
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Caja de la Imagen */
.product-image-box {
  width: 100%;
  height: 190px;
  min-height: 190px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-box a {
  width: 100%;
  height: 100%;
  display: block;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-box img {
  transform: scale(1.04);
}

/* Badge SKU */
.product-sku-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Bloque de Información */
.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 190px;
  box-sizing: border-box;
}

.product-category {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  display: block;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title a:hover {
  color: #0284c7;
}

/* Acciones */
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.btn-detail {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-detail:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.btn-whatsapp {
  flex: 1.2;
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2);
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #1eb956;
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

.no-products-message {
  width: 100%;
  text-align: center;
  color: #64748b;
  font-size: 15px;
  padding: 30px 0;
}

/* ==========================================
   FLECHAS DE NAVEGACIÓN
   ========================================== */

.btn-prev,
.btn-next {
  width: 42px;
  height: 42px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #0f172a;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 20;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  outline: none;
}

.btn-prev:hover,
.btn-next:hover {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.btn-prev.swiper-button-disabled,
.btn-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-prev {
  left: -20px;
}

.btn-next {
  right: -20px;
}

@media (max-width: 768px) {
  .featured-products-container {
    padding: 10px 0;
  }
  .btn-prev,
  .btn-next {
    display: none; /* En móviles es mejor usar el swipe táctil */
  }
}