/* Estilos para los botones de categorías */
.contenedor-categorias {
    padding: 10px 0;
}

.btn-categoria {
    border: none;
    background-color: #f0f4f8;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    margin: 6px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn-categoria:hover {
    background-color: #e2e8f0;
    color: #5888AF;
}

.btn-categoria.activo {
    background-color: #5888AF;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(88, 136, 175, 0.25);
}

/* Estilos para las tarjetas de productos */
.tarjeta-producto {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    height: 100%; /* Hace que todas tengan la misma altura */
    min-height: 420px; /* Altura mínima fija para todas las tarjetas */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    display: flex;
    flex-direction: column; /* Organiza el contenido en columna */
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.imagen-producto {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 14px;
    flex-shrink: 0; /* Evita que la imagen se reduzca de tamaño */
}

.cuerpo-tarjeta {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hace que esta sección ocupe todo el espacio disponible */
}

.nombre-producto {
    font-size: 1.2rem;
    font-weight: 700;
    color: #5888AF;
    margin-bottom: 10px;
}

.descripcion-producto {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* Deja que la descripción ocupe el espacio que sobre */
}

.boton-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    margin-top: auto; /* ✅ Esta línea fija el botón al fondo */
    flex-shrink: 0; /* Evita que el botón se comprima */
}

.boton-whatsapp:hover {
    background-color: #128C7E;
    color: #ffffff;
    text-decoration: none;
}

/* Mensaje cuando no hay productos */
.mensaje-sin-productos {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666666;
}