/* Contenedor principal del slider */
.swiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
   
    justify-content: center;

}
.seccion-productos {
  max-width: 1200px;
  margin: 40px auto;   
  padding: 0 20px;    
}

.swiper-slide {
  flex-shrink: 0;
    box-sizing: border-box;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    max-width: 1200px;
     height: auto !important;
}
/* Card principal */
.tarjeta-producto,
.producto-card,
.producto-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 360px;   /* altura fija parecida a Promelsa */
  box-sizing: border-box;
}

/* Imagen con altura fija */
.imagen-producto {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imagen-producto img {
  max-height: 160px;
  object-fit: contain;
}

/* Bloque info con altura controlada */
.info-producto {
  flex-grow: 1;
  padding: 10px 0;
  min-height: 120px;   /* altura mínima */
  max-height: 120px;   /* altura máxima */
  overflow: hidden;    /* corta el desborde */
}

/* Título con puntos suspensivos si es muy largo */
.info-producto .nombre {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3em;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botón siempre abajo */
.btn-cotizar {
  margin-top: auto;   /* empuja el botón al fondo */
}
.swiper-slide:hover {
    transform: translateY(-4px);
}
.tarjeta-producto {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
     min-height: 320px; 
}
.tarjeta-producto:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.imagen-producto {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.imagen-producto img {
    max-height: 160px;
    object-fit: contain;
}
.btn-favorito {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-favorito:hover {
    background: #f8f8f8;
}

.info-producto {
    text-align: left;
    margin-top: 10px;
    min-height: 140px;
}
.info-producto .marca {
    font-size: 12px;
    font-weight: bold;
    color: #444;
}
.info-producto .nombre {
    font-size: 14px;
    font-weight: 600;
  
      margin: 4px 0;
  line-height: 1.3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-producto .sku {
    font-size: 11px;
    color: gray;
}
.info-producto .estado {
    font-size: 13px;
    color: #222;
    font-weight: 500;
}

.btn-cotizar {
    display: block;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    transition: background 0.3s;
}
.btn-cotizar:hover {
    background: #0095d9;
}

/* Botón agregar al carrito */
.btn-agregar-carrito {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 100%;
  font-size: 14px;
  padding: 10px 18px;
  position: absolute;
  left: 50%;              /* centrado horizontal */
  bottom: 15px;           /* separación desde abajo */
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  z-index: 2;
}

/* Mostrar al hacer hover */
.producto-item:hover .btn-agregar-carrito {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hover del botón */
.btn-agregar-carrito:hover {
  background: #222;
  transform: translateX(-50%) translateY(-3px);
}
.swiper-slide img {
    
    height: 180px;
    object-fit: cover;
}


.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
 
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    color: black;
}


.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #000;
}
.producto-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    
}

.imagen-producto {
    height: 180px;
    object-fit: cover;
}

.info-producto {
    padding: 8px;
    text-align: left;
      flex-grow: 1;         /* obliga a ocupar el espacio disponible */
  min-height: 140px;    /* asegura altura mínima */
  max-height: 140px;    /* asegura altura máxima */
  overflow: hidden;  
}

.nombre {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3em;
}
.producto-card {
    transition: transform .2s ease;
}
.producto-card:hover {
    transform: scale(1.05);
}
.card-title {
    font-size: 14px;
    min-height: 40px;
}

.precio {
    color: #007600;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}
.producto-item {
    background: #fff;
    border-radius: 8px;
    transition: all .2s ease;
}

.producto-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.producto-item h6 {
    font-size: 14px;
    min-height: 38px; /* para que no salte con nombres largos */
}


.precio-anterior {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.descuento {
    color: #ff3b3b;
    font-weight: bold;
    margin-left: 5px;
}
/* Botones Swiper más pequeños y modernos */
.swiper-button-next,
.swiper-button-prev {
    width: 32px!important;           /* ancho botón */
    height: 32px!important;         /* alto botón */
    border-radius: 50%;   /* redondo */
    background: #fff;     /* fondo blanco */
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    color: #333;
    transition: all .2s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px!important;    /* tamaño de la flecha */
    font-weight: bold;
}

/* Hover efecto */

.cupon {
    display: inline-block;
    background: #f5f5f5;
    color: #333;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 3px;
}
.producto-item {
    position: relative;
    overflow: hidden;
}

.btn-agregar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.producto-item:hover .btn-agregar {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-5px);
}

.envio {
    color: #00a650;
    font-size: 12px;
    font-weight: 500;
}